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.

1.$(function () {
2.    $("#demo_1").tree();
3.});

1.<input type="button" onclick="$.tree.focused().select_branch("#phtml_2");" value="Select">
2.<input type="button" onclick="$.tree.focused().deselect_branch("#phtml_2");" value="Deselect">