Example

Stop the remaining functions in the queue:

$("#stop").click(function(){
  $("#box").clearQueue();
});

Try it yourself »

Definition and Usage

Stop all functions in the queue that has not yet been executed.

Unlike the stop() method (that only works with animations), the clearQueue() can remove any queued function.

Syntax

$(selector).stop(queueName)

Parameter Description
queueName Optional. Specifies the name of the queue to stop.

Default is "fx", the standard effects cure.