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

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -