Multiple selector chaining in jQuery?

前端 未结 7 767
迷失自我
迷失自我 2020-11-29 03:23

Normally when I use a class as a selector I try to use an \"id\" selector with it so it does not search through the entire page but only an area where the class would be.

相关标签:
7条回答
  • 2020-11-29 04:00

    You should be able to use:

    $('#Edit.myClass, #Create.myClass').plugin({options here});
    

    jQuery | Multiple Selectors

    0 讨论(0)
提交回复
热议问题