nexus site path corrected
[portal.git] / ecomp-portal-FE / client / bower_components / jqTree / _entries / 55_selectnode.md
1 ---
2 title: selectNode
3 name: functions-selectnode
4 ---
5
6 **function selectNode(node);**
7
8 **function selectNode(null);**
9
10 Select this node.
11
12 You can deselect the current node by calling **selectNode(null)**.
13
14 {% highlight js %}
15 // create tree
16 var $tree = $('#tree1');
17 $tree.tree({
18     data: data,
19     selectable: true
20 });
21
22 var node = $tree.tree('getNodeById', 123);
23 $tree.tree('selectNode', node);
24 {% endhighlight %}