Remove .click() binding
Remove .click() binding
Hi all!
I'm having some trouble removing the "click" binding from elements...
I have a function that looks like this:
-
function items_click(cmd) {
if(cmd=="edit") {
$(".item").click(function() {
alert($(this).attr("id"));
});
} else {
$(".item").click(function() {
return false;
});
}
}
But I can't seem to unbind the click again, it just keeps alerting the ID of the clicked element..
Did I miss something in the documentation or am I just not using my head right?
