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