How can I select an element with multiple classes in jQuery?

前端 未结 13 2406
一向
一向 2020-11-22 00:51

I want to select all the elements that have the two classes a and b.


So, only the e

相关标签:
13条回答
  • 2020-11-22 01:18

    You do not need jQuery for this

    In Vanilla you can do :

    document.querySelectorAll('.a.b')
    
    0 讨论(0)
提交回复
热议问题