I am not very good at javascript at all, but I love this webiste! I would like to know how to go about opening just the level below the root node of the tree.
I don't want to use expandAll and I don't want to collapseAll.
Also, if I may ask two questions, how would I change the image of only the nodes that had no children?
I have been working on this a bit and can't figure it out. Thanks so much!
EDIT: I answered my first question by using showHideNode. It was a little confusing to me at first because my ID's are like 'node0' instead of '0.'
Still can't get the ones with no children to show a different image.