I have a simple question: i have two different functions binded to click event:
$("#selector").click(function one() {
// stuff
});
$("#selector").click(function two() {
// other stuff
});
I want to unbind only one of them. How do i do that?
On
The off function is what you are looking for
The .off() method removes event handlers that were attached with .on()
You need to save the bound functions into variables. After that you can unbind them using jQuery's .off()-method: