to stop trigger in jquery
- by Alexander Corotchi
Hi everybody ,
I have an AJAX call, which is doing this call every 5 seconds and when the call "succeed " I have a trigger
success: function (msg) {
...
$('#test').trigger('click');
return false;
},
...
But i need to do this trigger just once , the first time, not every 5 second !
Can somebody suggest me how to stop this trigger, or maybe to use another stuff to trigger this "click "
Thanks!