Open In App

jQuery dequeue() Method

Last Updated : 11 Jul, 2025
Comments
Improve
Suggest changes
1 Like
Like
Report

The dequeue() method is an inbuilt method in jQuery that is used to remove the next function from the queue and then it will execute the function. In a queue there will be several functions waiting to run dequeue() used to remove the top function from the queue and execute that function. 

Syntax:

$(selector).dequeue(name);

Parameter: It accepts a parameter "name" which specifies the name of the queue. 

Return Value: It returns the selected element that performs the given top function.

Example 1: In the below code, the dequeue() method is also used to demonstrate the dequeue method. 

Output:

 

Example 2: In this example, the size of the box will change when the button is clicked.

Output:

 

Explore