Related questions
How do I get the id of the selected node in jsTree?
How can I get the id of the selected node in a jsTree?
function createNewNode() {
alert('test');
var tree = $.tree.reference("#basic_html");
selectedNodeId = xxxxxxxxx; //insert instruction to get id here
tree.create({ data : "New Node Name" }, selectedNodeId);
}
jsTree Open a branch
I am using the JQuery plugin jsTree, http://www.jstree.com/
I am able to expand the whole tree with the following method:
$("#tree").jstree("open_all");
and also a specific node:
$("#tree").jstree("open_node", $('#childNode'));
I am …
How do i open all nodes in jquery Jstree?
i'm using the following code:
$("#treeview").jstree();
$("#treeview").jstree('open_all');
With the following html:
<div id="treeview">
<ul>
<li>
<a href="#">rubentebogt</a>
<ul>
<li>
&…