Description
The .clearQueue() method stops all functions in the queue that have not yet been executed.
Unlike the stop() method (that only works with animations), the clearQueue() can remove any queued function
v1.4
This method has the form:
.stop(queueName)
Parameter | Description |
---|---|
queueName | (optional) Specifies the name of the queue to stop. Default is "fx", the standard effects cure. |
Return Value
This form returns a jQuery object.
Examples
Stop the remaining functions in the queue:
$("#stop").click(function(){
$("#box").clearQueue();
});