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

java - How to pass parameters between Request-Scoped Controllers? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -

ms access - C# - Using OleDbParameter on table name -