ExampleDisplay the length of a queue in a element:$("span").text(div.queue().length); Try it Yourself » Definition and UsageThe queue() method shows the queue of functions to be executed on the selected elements.A queue is one or more function(s) waiting to run.The queue...
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 ...