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

http://api.jquery.com/off/

the off() method removes event handlers attached .on()

$(document).on("mouseover","*",blahblahfunc); $(document).off("mouseover","*",blahblahfunc); 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -