How to get elements of specific class starting with a given string?

后端 未结 11 881
面向向阳花
面向向阳花 2021-02-03 21:19

I have a list of elements that have multiple classes, for example:


         


        
11条回答
  •  旧时难觅i
    2021-02-03 21:40

    How about this? http://api.jquery.com/attribute-contains-word-selector/

    $('input[class~="btn-"]')
    

提交回复
热议问题