<script type="text/javascript">
$(function () {
$("#node0")
.jstree({
"plugins" : ["themes","html_data","ui","crrm","hotkeys"],
"core" : { "initially_open" : [ "phtml_1" ] }
})
.jstree("create_node",$("#node0"),"last",
{attr : {rel:"folder",id:"node3"}, state:"closed", data: "root node 3"},
null,false);
.jstree("create_node",$("#node2"),"last",
{attr : {rel:"folder",id:"node7237_1"}, state:"closed", data: "node 2_1"},
null,false);
});
</script>
</head>
<body>
<div id="node0">
<ul>
<li id="node1">
<a href="#">Root node 1</a>
</li>
<li id="node2">
<a href="#">Root node 2</a>
</li>
</ul>
</div>
</body> |