I am using the jsTree jquery plugin
I am trying to fetch all the nodes and sub nodes of a selected parent. But somehow it\'s not working unless I use recursion.
You can get full tree all by using this selector: $("#demo1").find("li > a")
$("#demo1").find("li > a")