I m taking selected node by following code.
var selected=$("#warehouseTree").jstree('get_selected');
and now i want to check for child nodes for selected node.
This is simply how you extract children information from a specific node.
$("#tree_2").jstree().get_node("13").children
Try this:
var tree = jQuery.jstree._reference('#warehouseTree');
var children = tree._get_children(selected);
Which will return an array of jQuery objects of the children of the selected node.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With