Hello JQuery Enthusiasts!

I'm working on a web page with some tree code that periodically adds
new nodes to the tree.  When these new nodes/controls appear, I want
to bind their handlers to them.  At the moment, I'm doing general
selections to grab all the possible controls to bind 'click' or
'dblclick' to them.

How do I bind an event handler to an query with $().bind() without
chaining the event-- what I want to do is set the event handler only
if it wasn't already set for that matching element.   I don't want
that handler to be called twice (or three, four, etc times) for that
event.

--Simon

Reply via email to