jquery how to set time duration code example Example: jquery delay setTimeout( function() { //do something special }, 5000);