W3Schools.com

jQuery Effect clearQueue() Method

jQuery Effect Methods jQuery Effect Methods

Example

Stop the remaining functions in the queue:

$("#stop").click(function(){
  $("#box").clearQueue();
});

Try it yourself »

Definition and Usage

Stop all functions in the queue that has not yet been executed.

Unlike the stop() method (that only works with animations), the clearQueue() can remove any queued function.

Syntax

$(selector).clearQueue(queueName)

Parameter Description
queueName Optional. Specifies the name of the queue to stop.

Default is "fx", the standard effects cure.



jQuery Effect Methods jQuery Effect Methods


WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$3.98 Unlimited Hosting
Premium Website Design
WEB BUILDING
Download XML Editor
FREE Website BUILDER
Best Website Templates Top CSS Templates
CREATE HTML Websites
EASY WEBSITE BUILDER
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE