I use the code below at page load time to generate a tree using jsTree .
$('#jstree_demo_div').jstree({
'core': {
'themes': {
'name': 'proton',
'responsive': true
},
'data': results,
"check_callback" : true
}
});
Everything works fine, and the result array is displayed as tree. I want to add / add dynamically child nodes by clicking several nodes in this static tree.
Please, help.
source
share