jQuery | queue() with Examples
The queue() method is an inbuilt method in jQuery which is used to show the queue of functions to be executed on the selected elements. In a queue one or more function wait for run.
- The queue() method can be used with the dequeue() method.
- An element may have several queues. Generally there is only one default jQuery queue.
Parameters: This method accepts single parameter queue_name which is optional. It is used to set the queue name.
Below example illustrates the queue() method in jQuery:
Before click on the paragraph element:
After click on the paragraph element: