jQuery Tutorial Tutorials - jQuery .dequeue()

jQuery .dequeue()

The .dequeue() method in jQuery is used to execute the next function on the effects queue.

jQuery .dequeue() syntax

.dequeue([queueName]);

queueName is the name of the effects queue.

jQuery .dequeue() Examples

example

Use dequeue to end a custom queue function

$("div").queue(function () {
  $(this).toggleClass("red");
  $(this).dequeue();
});

Try now

Date:2019-08-30 01:28:14 From:www.Lautturi.com author:Lautturi