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 -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -