.clearQueue() in jQuery

It helps to stop the remaining functions in the queue:

.clearQueue()

// To stop animation using clearQueue() .

$(document).ready(function(){
  $(“#start”).click(function(){
       $(“div”).animate({height:100},1200);
       $(“div”).animate({width:100},1200);
       $(“div”).animate({height:200},1700);
       $(“div”).animate({width:200},7500);
  });
  $(“#stop”).click(function(){
       $(“div”).clearQueue();
  });
});