How can I refresh the contents of a jsTree?

John Mills picture John Mills · Sep 10, 2010 · Viewed 78.5k times · Source

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?

Answer

John Mills picture John Mills · Sep 10, 2010

Turns out is is as simple as calling:

   tree.jstree("refresh");