I'm trying to find a way to retrieve the node id during a text search. Here's an example: http://jsfiddle.net/53cvtbv9/529/ I attempted using two methods to get the id of a node after the search:
console.log($('#jstree').jstree(true).search("Natural & Organic", false, true, '1.0'));
console.log($('#jstree').jstree('search', "Natural & Organic"));
The first method resulted in an "undefined" output, while the second one gave me a complex object (check the console).
Is there a way to retrieve the node id instead? Also, how can I prevent the color of the found node from changing?
Any suggestions or insights would be greatly appreciated. Thank you!