Learn all about the jQuery function .clearQueue().
.clearQueue() method is called, all functions on the queue that have not been executed are removed from the queue. When used without an argument,
.clearQueue() removes the remaining functions from
fx, the standard effects queue. In this way it is similar to
.stop(true). However, while the
.stop() method is meant to be used only with animations,
.clearQueue() can also be used to remove any function that has been added to a generic jQuery queue with the