W3Schools.com

jQuery Event undelegate() Method

jQuery Event Methods jQuery Event Methods

Example

Remove all event handles added with the delegate() method from all elements:

$("body").undelegate();

Try it yourself »

Definition and Usage

The undelegate() method removes one or more event handlers, added with the delegate() method.

Syntax

$(selector).undelegate(selector,event,function)

Parameter Description
selector Optional. Specifies the selector to remove event handlers from
event Optional. Specifies one or more event types to remove handler functions from
function Optional. Specifies a specific event handler function to remove


Examples

Try it Yourself - Examples

Remove event handlers, added with delegate(), from a specific selector
How to use the undelegate() method to remove all event handles from specified elements.

Remove event handlers for a specified event type, added with delegate(), from specified elements
How to use the undelegate() method to remove all event handles for a specific event type from specified elements.

Remove a specific function added with delegate()
How to use the undelegate() method to remove only a specific function from a specific event type for the event handler.


jQuery Event Methods jQuery Event 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