To get node, use this:
$('#dashboardTree').jstree(true).get_node('1');
If you need the actual DOM node, use this:
$('#dashboardTree').jstree(true).get_node('1', true);
But just call it as soon as the tree is ready:
$('#dashboardTree').on('ready.jstree', function (e, data) {
var node = data.instance.get_node('1');
})
initDashboardArchiveTree();
source
share