Why is this jQuery ajax click event firing multiple times?

后端 未结 7 1862
无人共我
无人共我 2020-12-14 08:13

I have tried unbinding the click event, but it fires sometimes twice sometimes 5 times!! Getting a bit fed up now!

Code from modal.asp

$         


        
7条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-14 08:52

    I have resolved this issue now, I was using

    $(document).ready
    

    in the loaded ajax content along with...

    
    

    So I presume it was doubling up the "live" function!

    Thank you so much for the responses.

提交回复
热议问题