jQuery Tutorial

jQuery Delay Function: delay() method in jQuery

delay() function in jQuery

The delay() method in jQuery starts a timer that prevents the next item in the queue from being executed.

Syntax for delay() function in jQuery

$(selector).delay(speed,queueName)

Example of jQuery delay effect 

Delay the appearance of several

elements:
$("button").click(function(){
  $("#div1").delay("slow").fadeIn();
  $("#div2").delay("fast").fadeIn();
});
Did you find this article helpful?