The jQuery.delay () function only works with animation queue elements.
The example below uses .delay () and a callback function to change the second element:
$('#test1').hide('fade', {}, 1000).delay(3000).hide(0, function() {
$('#test2').show(0).delay(3000).hide();
});
source
share