I am creating a tree in which based on which child of a node is clicked the data is loaded in another node. For example
Node1
(-child1
-child2)
Node2
(data not yet loaded)
Based on what user clicks in Node1 (child1 or child2) data will be loaded in Node2.
How to attach events only on children of Node1 and not to the whole tree?