VOOZH about

URL: https://www.geeksforgeeks.org/jquery/jquery-queue-method/

⇱ jQuery queue() Method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

jQuery queue() Method

Last Updated : 30 Jun, 2023
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.
Syntax:
$(selector).queue(queue_name)
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: Example: Output: Before click on the paragraph element: 👁 Image
After click on the paragraph element: 👁 Image
Comment
Article Tags:

Explore