Tutorials References Exercises Bootcamps Videos Menu
Sign Up Create Website Get Certified Upgrade

jQuery undelegate() Method

❮ jQuery Event Methods


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

Try it Yourself »

Definition and Usage

The undelegate() method was deprecated in version 3.0. Use the off() method instead.

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



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

Try it Yourself - Examples

Remove all click event handlers
How to use the undelegate() method to remove all click event handlers for all <p> elements.

Remove a specific function added with delegate()
How to use the undelegate() method to remove only a specific function.

❮ jQuery Event Methods