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