jQuery Intro

jQuery Intro Quiz

jQuery Intro Exercise

jQuery Basic

jQuery Basic Quiz

jQuery Basic Exercise

jQuery Advance

jQuery Advance Quiz

jQuery Advance Exercise

jQuery Selectors

jQuery Effects

jQuery Events

jQuery Methods and Properties

jQuery Traversing

jQuery CSS and HTML Methods

jQuery off() Method

jQuery off() Method



The off() method is used to remove event handlers attached with the on() method. It is relatively new compared to previous similar functions like unbind(), die(), etc.




Its syntax is:- $(selector).off(event,selector,function(eventObj),map)


Further Explanation:-


Parameter Description
event Required. Specifies one or more events or namespaces to remove from the selected element.
selector Optional. A selector which should match the one originally passed to the on() method when attaching event handlers
function(eventObject) Optional. Specifies the function to run when the event occurs
map Specifies an event map i.e, containing one or more event to attach to the elements.

Code Explanation

All Tutorials related to jQuery Events

All Sections related to Jquery