I created a dynamic menu using jstree plugin, here my problem is to toggle the menu when we click on parent1 then the sub child will get opened and when i click on parent2 ie node two then i want to close the parent1. How to implement this.
node1
sub1
sub2parent
sub1
sub2
sub3
sub3
node2
sub1
sub2
sub3
here when i click on node one all sub are visible. when i click on node 2 then the node1 sub nodes and note2 sub nodes are visible
what i need is when i click on node2 then node1 should get closed.