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:
- jQuery | jQuery.fx.interval Property with example
- jQuery | jQuery.fx.off Property
- jQuery | jQuery.support Property
- jQuery | jquery Property
- p5.js | Enqueue Operation in Queue
- p5.js | Dequeue Operation in Queue
- D3.js queue() Function
- D3.js queue.defer() Function
- D3.js queue.abort() Function
- jQuery | prepend() with Examples
- jQuery | dblclick() with Examples
- jQuery | offset() with Examples
- jQuery | children() with Examples
- jQuery | Hide/Show, Toggle and Fading methods with Examples
- jQuery | focusin() with Examples
- jQuery | Animation, Slide methods with Examples
- jQuery | change() with Examples
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.