I\'ve been trying to get the text of a node that is selected in a jsTree. I am able to populate the tree and trigger the onSelect event, but I can\'t find out which node was cli
With the current version it's best to use get_selected
with full: true
, which means that the method will return the full object(s), and not only id.
So for example:
$("#treeNode").jstree('get_selected', true);
or:
$("#treeNode").jstree().get_selected(true);
Each element in the array will have all the properties as text or id.