Easy Tutorial
❮ Traversing Prevall Sel Visible ❯

jQuery clearQueue() Method

jQuery Effects Methods

Example

Stop the remaining functions in the queue:


Definition and Usage

The clearQueue() method removes all items from the queue that have not yet been run. Note that when a function starts running, it will continue to run until completion.

Related methods:

Tip: Unlike the stop() method (which only applies to animations), the clearQueue() method removes any queued functions.


Syntax

Parameter Description
queueName Optional. Specifies the name of the queue. <br> <br>Default is "fx", the standard effects queue.

Try it - Example

Using queue-related methods together


jQuery Effects Methods

❮ Traversing Prevall Sel Visible ❯