December 2013
Intermediate to advanced
384 pages
9h 54m
English
$("div").off("keypress"): or $("div").off("click", "span", function(e){ (event handler code here) }):
Removing an event handler in jQuery is extremely easy using the .off(events[,selector ][,handler(eventObject)]) method. This method has similar arguments to the .on() event handler. The arguments match so closely so that you can add multiple event handlers to elements. Using the arguments helps jQuery know which event matches the one you want to turn off.
Read now
Unlock full access