Multiple Queues in jQuery - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:queue

Description

Multiple Queues in jQuery

Demo Code

ResultView the demo in separate window


<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>

Related Tutorials