javascript - jQuery: Unbind jQuery 2.0 on method -
in jquery 1.9 live()
deprecated, new method became:
$(document).on("mouseover","*",blahblahfunc);
i'm unable unbind "blahblahfunc". via
$("*").unbind("mouseover mouseout click");
notice i'm binding function every element in dom, ideas?
use .off()
see api documentation
the off() method removes event handlers attached .on()
$(document).on("mouseover","*",blahblahfunc); $(document).off("mouseover","*",blahblahfunc);
Comments
Post a Comment