ExampleRemove all event handles added with the delegate() method from all elements:
Try it yourself » |
The undelegate() method removes one or more event handlers, added with the delegate() method.
$(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 |
![]() |
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.