22
rated 0 times
[
25]
[
3]
/ answers: 1 / hits: 62638
/ 12 Years ago, wed, june 13, 2012, 12:00:00
I am using the following code:
$("#treeview").jstree();
$("#treeview").jstree('open_all');
With the following html:
<div id="treeview">
<ul>
<li>
<a href="#">RTB</a>
<ul>
<li>
<a href="#" onclick="goTo('index.php?module=alarm&pagina=dashboard&id=6',false);">Beneden</a>
</li>
<li>
<a href="#" onclick="goTo('index.php?module=alarm&pagina=dashboard&id=7',false);">Boven</a>
</li>
</ul>
</li>
</ul>
</div>
My problem is that all nodes stay closed, I can't get them to open with jstree('open_all');
.
More From » jquery