jQuery Event - die() Method
Example
Remove all event handlers added to the p element through the live() method:
$("p").die();
Definition and Usage
The die() method removes all event handlers added to a specified element through the live() method.
Syntax
$().die(event,function)
Parameter | Description |
---|---|
event |
Required. Specify one or more event handlers to be removed. Multiple event values are separated by spaces. They must be valid events. |
function | Optional. Specify the specific function to be removed. |
More examples
- Remove a specific function added by live()
- How to remove a specific function of the event handler using the live() method.