jquery set delay code example
Example 1: jquery pause n seconds
setTimeout(
function()
{
//do something special
}, 5000);
Example 2: jquery delay
$( "#foo" ).slideUp( 300 ).delay( 800 ).fadeIn( 400 );
setTimeout(
function()
{
//do something special
}, 5000);
$( "#foo" ).slideUp( 300 ).delay( 800 ).fadeIn( 400 );