Sorry, but I do not understand your requirements - if you want to have a DIV with an UL inside of it, that contains multiple LIs (each representing a root node) and have only one of those LIs visible at any given moment - that is not possible - jstree does not work like that - there is no hide/show functionality.
Tell me what you are trying to achieve so that I can help you - give me an example. The sample you need is the code I gave in my previous answer. You can modify it to use static JSON:
<select id="dropdown">
<option value="root1">root1</option>
<option value="root2">root2</option>
</select>
<script>
var data = {
'root1' : [ ... data here ... ],
'root2' : [ ... data here ... ]
};
$('#tree').jstree({
core : {
data : function (node, cb) {
cb(data[$('#dropdown').val()]);
}, ...
$('#dropdown').change(function () {
$('#tree').jstree(true).refresh();
});
I can not think of an easy way to do this with the HTML data source - it is a basic data source, which is not as flexible as JSON.
Best regards,
Ivan