To unbind just one previously bound handler, pass the function in as the second argument: : unbind « jQuery « JavaScript DHTML






To unbind just one previously bound handler, pass the function in as the second argument:

 


var foo = function () {
  // event handler
};

$("p").bind("click", foo); // foo is binded

$("p").unbind("click", foo); // foo is no longer binded

   
  








Related examples in the same category

1.Unbind all events from
2.Unbind all live events from all paragraphs
3.Unbind event
4.unbind(type , data ): Without any arguments, all bound events are removed.
5.To unbind all click events from all paragraphs