wait for 2 seconds in jquery code example Example: jquery pause n seconds setTimeout( function() { //do something special }, 5000);