Back

.off( events, [handler] )

Unbind some event handler from each element in the current set

Aliased as .unbind() for compatibility

If no handler is provided, ALL handlers will be unbound from the specified events

Params

events{String}A space-separated list of events to unbind
handler{Function} [optional]A specific function to unbind

Returns

DollarJS (chainable)

Examples

$('p').off('click')
$('p').off('click', justOneHandler)