Javatpoint Logo
Javatpoint Logo

jQuery dequeue() method

The dequeue() method in jQuery is used to remove the next function from the queue, and then it will execute the function. There will be several functions in a queue waiting to run; the dequeue() method will remove the function on the top and execute that function.

The dequeue() method is used together with the queue() method.

Syntax

The commonly used syntax of the dequeue() function is given below.

The dequeue() method accepts a single optional parameter, "name", mentioned in the above syntax. This parameter is used to specify the name of the queue.

Now, let's see an illustration to understand the use of the dequeue() method.

Example

Test it Now

Output

After the execution of the above code, the output will be -

jQuery dequeue() method




Youtube For Videos Join Our Youtube Channel: Join Now

Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA