Javascript examples for jQuery Method and Property:queue
Multiple Queues in jQuery
<html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <style> </style> </head> <body> <button id="example">Click me!</button> <script> $('#example').click(function() { $(this).delay(1000, 'fx2').queue('fx2', function() { console.log('here'); $(this).dequeue('fx2'); }).dequeue('fx2'); });//from ww w.j a v a 2 s. c om </script> </body> </html>