ExampleDisplay the length of a queue in a <span> element:$("span").text(div.queue().length); Try it Yourself » Definition and UsageThe queue() method shows the queue of functions to be executed on the selecte
Stop the remaining functions in the queue:$("button").click(function(){ $("div").clearQueue(); }); Try it Yourself » Definition and UsageThe clearQueue() method removes all items from the queue that have not yet been run. Note that when a function has started to run, it runs ...