[jQuery] Why does one click event work and not the other?
Hi,
I want to define a click event, so natrually this works
$('#treeDelete').click(function() {
...
}
but I would like to get this to work (and I can't) to guarantee that
only a single click event is defined for this id
$
('#treeDelete').unbind('click.clickTreeDelete').bind('click.clickTreeDelete',
function() {
...
}
What is wrong with the above or is tehre a different approach I can
take to guarantee only a single click event gets defined on the
object?
Thanks, - Dave