Why is this jQuery ajax click event firing multiple times?

后端 未结 7 1880
无人共我
无人共我 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:42

    You are unbinding first afterwards the success. You need to unbind it in the click handler and then add it again onerror.

提交回复
热议问题