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

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

I have a structure of html like this:

some elements inside
some elements inside
4条回答
  •  被撕碎了的回忆
    2021-01-30 16:55

    You can use the following:

    $("div[id^='triger']")
    

    This will return all

    with id starting (^=) with triger.

    You can get more information about the various jQuery selectors in the jQuery docs:

    API/Selectors

提交回复
热议问题