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

前端 未结 13 2674
一向
一向 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')
    

提交回复
热议问题