YouTip LogoYouTip

Eff Dequeue

# jQuery dequeue() Method [![Image 4: jQuery Effect Methods](#) jQuery Effect Methods](#) ## Example Remove the next function from the queue, then execute the function: $("div").queue(function(){ $("div").css("background-color","red"); $("div").dequeue(); }); [Try it Yourself Β»](#) * * * ## Definition and Usage The dequeue() method removes the next function from the queue, then executes that function. A queue is a list of functions waiting to be run. The dequeue() method is usually used together with the [queue()](#) method. An element can have several queues. Most often, there is only one, the "fx" queue, which is the default jQuery queue. **Note:** You should ensure that the dequeue() method is called after adding a function via queue() in order to allow the process to continue. * * * ## Syntax $(_selector_).dequeue(_queueName_) | Parameter | Description | | :--- | :--- | | _queueName_ | Optional. Specifies the name of the queue. Default is "fx", the standard effects queue. | * * * ![Image 5: Example](#) ## Try it - Example (#) How to use queue(), dequeue(), and clearQueue() together. * * jQuery Effect Methods](#)
← Html AppendtoEff Delay β†’