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
$("#equipment_tree").bind("select_node.jstree", function(evt, data){ var i, j, r = [], ids=[]; for(i = 0, j = data.selected.length; i < j; i++) { r.push(data.instance.get_node(data.selected[i]).text); } alert('Selected: ' + r.join(', ')); } );
you have to try this.