jQuery delay()The jQuery delay() method is used to delay the execution of functions in the queue. It is a best method to make a delay between the queued jQuery effects. The jQUery delay () method sets a timer to delay the execution of the next item in the queue. Syntax: speed: It is an optional parameter. It specifies the speed of the delay. Its possible vales are slow, fast and milliseconds. queueName: It is also an optional parameter. It specifies the name of the queue. Its default value is "fx" the standard queue effect. Let's take an example to see the delay effect: Test it NowOutput: jQuery delay() example with different valuesLet's see a jQuery delay() effect example where we are using fast, slow and milliseconds values. Test it NowOutput: This example sets different speed values for the delay() method.
Next TopicjQuery html()
|
JavaTpoint offers too many high quality services. Mail us on h[email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected].
Duration: 1 week to 2 week