How to add functions to some jQuery objects, but not others?

前端 未结 4 990
我寻月下人不归
我寻月下人不归 2021-02-07 08:37

Let\'s say I have a

    list:

      ...

    I want to select it with jQuery, then add s

4条回答
  •  时光说笑
    2021-02-07 09:14

    I think may be just using delegate in jQuery:

    $(".parentclass").delegate("childclass","eventname",function(){});
    

提交回复
热议问题