jQuery dequeue() method
The dequeue() method in jQuery is used to remove the next function from the queue, and then it will execute the function. There will be several functions in a queue waiting to run; the dequeue() method will remove the function on the top and execute that function.
The dequeue() method is used together with the queue() method.
The commonly used syntax of the dequeue() function is given below.
The dequeue() method accepts a single optional parameter, "name", mentioned in the above syntax. This parameter is used to specify the name of the queue.
Now, let's see an illustration to understand the use of the dequeue() method.
ExampleTest it Now
After the execution of the above code, the output will be -
JavaTpoint offers too many high quality services. Mail us on h[email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected].
Duration: 1 week to 2 week