Description:

Execute the next function on the queue for the matched element. When jQuery.dequeue() is called, the next function on the queue is removed from the queue, and then executed.

Syntax

$(selector).dequeue( element [, queueName ] )

element  Need to secify the DOM element to remove and execute a queued function.
queueName It contain the name of the queue. Defaults it will be fx.

Example:

Output:

Clicking on “Start Queue with Dequeue” button, the “divBox” start with animations and skip the execution of the queue function when it reach .dequeue() method.

jquery-dequeu-effect-dotnet-helpers-com-jquery-helpers-com

Note:

We need to use dequeue() method  with queue() else the queue will not be closed and you will get undesired result.