Featured Post

Undelegate jquery

Returns: jQuery
.undelegate()
.undelegate(selector, eventType)
selector A selector which will be used to filter the event results.
eventType A string containing a JavaScript event type, such as "click" or "keydown"
.undelegate(selector, eventType, handler)
selector A selector which will be used to filter the event results.
eventType A string containing a JavaScript event type, such as "click" or "keydown"
handler A function to execute at the time the event is triggered.
.undelegate(selector, events)
selector A selector which will be used to filter the event results.
events A map of one or more event types and previously bound functions to unbind from them.
.undelegate(namespace)
namespace A string containing a namespace to unbind all events from.
Remove a handler from the event for all elements which match the current selector, now or in the future, based upon a specific set of root elements.
Undelegate is a way of removing event handlers that have been bound using .delegate(). It works virtually identically to .die() with the addition of a selector filter argument (which is required for delegation to work).

Example Demo < 1 >
Can bind and unbind events to the colored button.










Click!



Comments