jQuery Tutorial Tutorials - jQuery .clearQueue()

jQuery .clearQueue()

The .clearQueue() method in jQuery is used to remove from the queue all items that have not yet been run.

jQuery .clearQueue() syntax

.clearQueue([queueName]);

queueName is the name of the effects queue.

jQuery .clearQueue() Examples

example

Stop the animation

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

Try now

Date:2019-08-30 01:35:56 From:www.Lautturi.com author:Lautturi