jquery .delegate and dynamic content

后端 未结 4 417
一向
一向 2020-12-22 12:38

I have to following HTML:

4条回答
  •  心在旅途
    2020-12-22 12:54

    If you're using latest version of jQuery, correct code would be:

    $(document).on("click", ".liclass a", function(e) {
      e.stopPropagation();        
    });
    

提交回复
热议问题