English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The clearQueue() method removes all items not yet run from the queue. Please note that when a function starts running, it will run until completion.
When calling the clearQueue() method, all functions not yet executed on the queue will be removed.
Note:A queue is one or more functions waiting to be executed.
is only applicable to animations.stop()Different methods, the clearQueue() method can delete all queued functions.
$(selector).clearQueue(queueName)
Delete all remaining functions in the queue:
$("#btn2").click(function(){ $("div").clearQueue(); });Test to see‹/›
Parameters | Description |
---|---|
queueName | (Optional) A string containing the name of the queue. The default isfxStandard effect queue |