jQuery dequeue() Method

The queue() method allows you to create a queue of functions to be executed on selected elements.

The dequeue() method executes them in order.