jQuery click event not working after adding class

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

In my JSP page I added some links:

Organization Data


        
7条回答
  •  感动是毒
    2020-11-22 02:38

    I Know this is an old topic...but none of the above helped me. And after searching a lot and trying everything...I came up with this.

    First remove the click code out of the $(document).ready part and put it in a separate section. then put your click code in an $(function(){......}); code.

    Like this:

    
    

提交回复
热议问题