JQuery, how to find list of div's with similar ID

后端 未结 4 788
情话喂你
情话喂你 2021-01-30 16:30

I have a structure of html like this:

some elements inside
some elements inside
4条回答
  •  名媛妹妹
    2021-01-30 16:54

    Select all div elements whose id attribute contains the string triger:

    $('div[id*="triger"]');
    

    There's more about using *= in the jQuery documentation: Attribute Contains Selector [name*="value"]

提交回复
热议问题