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
The click event doesn't pass any data with it, so the event object will need to be used.
.bind("click.jstree", function (event) { alert($(event.currentTarget).parent("li:first").text().trim()); });