jQuery: Unbind jQuery 2.0 on method

In jQuery 1.9 live() was deprecated, so the new method became:

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

I'm unable to unbind "blahblahfunc". via

$("*").unbind("mouseover mouseout click");

Notice that I'm binding a function to every element in the dom, any ideas?

Answers


use .off()

see the Api Documentation

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

The off() method removes event handlers that were attached with .on()

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

Need Your Help

how to use an object that is created already as an argument in java

java variable-assignment

I have an AddressBook class and a Persons class in my program. The AddressBook class has an array of Persons object.

Java Swing GUI for equation 5((θ/β) - cos(2πθ/β)) - to draw continuous graph

java swing

This is an extension to my previous question posted here -- Java Swing GUI for equation 5((θ/β) - cos(2πθ/β))

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.