jQuery click event not working after adding class

前端 未结 7 1729
臣服心动
臣服心动 2020-11-22 01:47

In my JSP page I added some links:

Organization Data


        
7条回答
  •  滥情空心
    2020-11-22 02:45

    .live() is deprecated.When you want to use for delegated elements then use .on() wiht the following syntax

    $(document).on('click', "a.tabclick", function() {
    

    This syntax will work for delegated events

    .on()

提交回复
热议问题