jquery - How to check whether selected node is having child nodes or not in jstree? -
jquery - How to check whether selected node is having child nodes or not in jstree? -
i m taking selected node next code.
var selected=$("#warehousetree").jstree('get_selected');
and want check kid nodes selected node.
try this:
var tree = jquery.jstree._reference('#warehousetree'); var children = tree._get_children(selected);
which homecoming array of jquery objects of children of selected node.
jquery jstree
Comments
Post a Comment