Jquery – How to refresh the contents of a jsTree

jqueryjstree

I have loaded a jsTree with an AJAX call that returns JSON data. How can I refresh the tree so that it reloads its contents?

Best Answer

Turns out is is as simple as calling:

   tree.jstree("refresh");