add delay in jquery code example
Example 1: jquery delay
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 );