Hi,
i am getting a plain HTML List in tree structure, that is generated automatically, and i don't know some ids, which are used there for UL or LI tags - i only know, that the div tag has an ID, that starts with jstree, so i am initializing a js tree with the following code:
$(function() {
$('div[id^="jstree"]')
.jstree({
"plugins" : [ "checkbox" ],
"core" : {
"multiple" : true,
"themes" : {
"dots" : false,
"icons" : false,
"stripes" : false
},
"animation" : 0
}
})
}
This is working fine.
No id like to "open" the root node, and only the root node - not all nodes.
Thats the main problem.
A "smaller" problem is, that i like to "hide" the root node too, but this is not so important.
Could you give me a hint, how to open just all childs of the root node during or after initialization of this tree?
Thanks in advance,
Thomas