How can I get the id of the selected node in a jsTree?
function createNewNode() { alert(\'test\'); var tree = $.tree.reference(\"#basic_html\"); select
You can use the following code var nodes = $("#jstree_demo_div").jstree(true).get_selected("full", true);//List of selected node
nodes[0].id//Which will give id of 1st object from array