Selecting nodes demo

You may also want to read the documentation on select_branch, deselect_branch and type clickable setting. To initially select some nodes when the tree loads - take a look at the selected config option. When selecting/deselecting the beforechange, onchange, onselect and ondeselect callbacks are triggered.