[jQuery] how to remove a behavior?
Hi,
I have this function ...
function defineBehaviors() {
$('a.deleteWorksheetItem').click( function() {
alert("Executing action");
});
}
and I notice (at least in PC Firefox) if I call this function twice on
a page, clicking the link causes the action to be executed twice -- in
the above case, there are two alert boxes. My question is, how can I
prevent the action from being defined multiple times or how do I
remove any function associated with the action before re-defining it?
Thanks, - Dave