I have a jstree. I want to select the node which is bound to the object which has a location with id of 158. This works but seems stupid. What\'s the more idiomatic way of doing
i think u should write code to select node after jstree initialized, therefore use this code
$('#jstree') .on('ready.jstree', function (e, data) { // do function after jstree initialized $('#jstree') .jstree(true) .select_node('nodeid'); });
hope its work :)