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

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

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


         


        
11条回答
  •  感情败类
    2021-02-03 21:44

    You could just make btn its own class. However, this will work.

    $("div[class^='btn-']")
    

提交回复
热议问题