to stop trigger in jquery

Posted by Alexander Corotchi on Stack Overflow See other posts from Stack Overflow or by Alexander Corotchi
Published on 2010-06-08T02:57:35Z Indexed on 2010/06/08 3:02 UTC
Read the original article Hit count: 395

Filed under:
|

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!

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about triggers