jQuery click event handler is called twice for a checkbox

前端 未结 10 1966
野趣味
野趣味 2020-12-09 17:08

I have a problem with the following code in an ASPX page:



        
10条回答
  •  醉酒成梦
    2020-12-09 17:37

    The function runs twice. Once from the inside and then it gets called again from inside itself. Simple add a return statement at the end.

    
    
    
    

    This worked perfectly for me.

提交回复
热议问题