.die()Returns: jQueryversion deprecated: 1.7, removed: 1.9
Description: Remove event handlers previously attached using .live()
from the elements.
-
version added: 1.4.1.die()
- This signature does not accept any arguments.
-
version added: 1.3.die( eventType [, handler ] )
-
version added: 1.4.3.die( events )
-
eventsType: PlainObjectA plain object of one or more event types, such as
click
orkeydown
and their corresponding functions that are no longer to be executed.
-
on()
instead.
.live()
can be removed with .die()
. This method is analogous to calling .off()
with no arguments, which is used to remove all handlers attached with .on()
.
See the discussions of .live()
and .off()
for further details.
.live()
from the elements.
.die()
(and its complementary method, .live()
) is not recommended. Instead, use .off()
to remove event handlers bound with .on()
Examples:
Example 2
1
|
|
Example 3
1
2
3
4
5
6
7
8
9
|
|