Friday, 15 March 2013

javascript - Jquery delay function execute -


I want to execute 2 functions in jquery, but I need to execute another function after 3 seconds, I try, but if I use it, the second function of jquery is never executed, I create the script and I try to continue working:

  jQuery ( "# Tem_forma"). Hide (); Delay (3000); . Hide JQuery ("#wings") (1000);   

How can I use the delay function to wait for 3 seconds to execute the next function, in this case the second

Thank's, Regards !!!

setTimeout

  jQuery usage Do ("# tem_forma"). Hide (); SetTimeout (function () {jQuery ("# ​​win"). Hiding (1000);}, 3000);   

This will ensure that your function will be executed after 3 seconds.

No comments:

Post a Comment