Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jstree - how to get children of a parent node (in other words, how to get siblings)

How to get all children of parent of currently selected node?

Something like currentNode._get_parent()._get_children() (which does not work)

like image 727
kul_mi Avatar asked Dec 06 '25 04:12

kul_mi


1 Answers

You can try

jQuery.jstree._reference("#treeSelector")._get_children(parentNode);

also see documentation

like image 120
Shoopman Avatar answered Dec 07 '25 18:12

Shoopman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!