jQuery.queue()S2C Home « Utilities « jQuery.queue()

Queue display/manipulation.

Description

The jQuery.queue() jQuery Data utility method, shows or manipulates the queue of functions to be executed on the matched element.

Shorthand version $.queue()

  • The jQuery.queue() method is a low-level method which we are showing for completeness.
  • We suggest using the .queue() and .dequeue() methods for queue functionality.

Syntax

Signature Description
jQuery.queue( element [, queueName] )Shows the queue of functions for the specified element, optionally passing a queue name.
jQuery.queue( element, queueName, newQueue )Manipulate the queue of functions to be executed on the matched element, optionally passing an array of functions to replace the current queue.
jQuery.queue( element, queueName, callback() )Manipulate the queue of functions to be executed on the matched element, passing a function to add to the current queue.

Parameters

Parameter Description Type
elementA DOM element from which to remove and execute the queued function.Element
queueNameA string containing the name of the queue. Defaults to 'fx', which is the standard effects queue.String
newQueueAn array of functions to replace the current queue contents.Array
callback()A function to add to the queue.Function

Return

An Array object.