jQuery die()Methods
Examples
Remove all event handlers added to <p> elements via the live() method:
$("p").die();
Try it Yourself »
Definition and Usage
In jQuery version 1.7, the die() methodwas deprecated, and was removed in version 1.9. Please useoff()method instead.
The die() method removes, via thelive()method, one or more event handlers added to selected elements.
Syntax
$(selector).die(event,function)
| Parameter | Description |
|---|---|
| event | Required. Specifies one or more event handlers to remove. Multiple event values separated by spaces. Must be valid events. |
| function | Optional. Specifies a specific function to remove. |
More Examples
Remove a specific event handler
How to use the die() method to remove only one specified event handler from selected elements.
Other Extensions
jQuery Event Methods