jsTree » Demos

# 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.

- Root node 1
  - Child node 1
  - Child node 2
  - Some other child node with longer text
- Root node 2