jqueryjstree

How can I refresh the contents of a jsTree?


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?


Solution

  • Turns out is is as simple as calling:

       tree.jstree("refresh");