Multiple selector chaining in jQuery?

前端 未结 7 907
迷失自我
迷失自我 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

提交回复
热议问题