You can save the state of the last node selected, using the saveState option.
When saveState is true, a cookie with the last selected tree node is saved.
When the user revisits the page, the tree is expanded to this saved node. A good example is a shopping cart in which the tree opens to the last item the user viewed on their previous visit to the website.
This demo also demonstrates some of the different HTML elements that you can include in your tree.
Since the tree is generated from HTML, it is easy to include checkboxes
and other form elements. As you can see, by changing the HTML code, you can
easily customize the look of the tree nodes.