I tried to use this:
$("#jstree_demo_div").jstree("destroy").empty();
It removes the checked nodes and reload the tree but does not apply the new changes. Any suggestion will be greatly appreciated.
Globally I need to reset my tree with unchecked checkBox
this is working nice for me !
$('#jstree_demo_div').jstree(true).deselect_all();
for checking all the checkboxes
$("#jstree").jstree(true).check_all();
for unchecking all the checkboxes
$("#jstree").jstree(true).uncheck_all();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With