summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-FE/client/bower_components/jqTree/_entries/55_selectnode.md
blob: a3ab45e775efe5bc96d977972092406be3355f13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
title: selectNode
name: functions-selectnode
---

**function selectNode(node);**

**function selectNode(null);**

Select this node.

You can deselect the current node by calling **selectNode(null)**.

{% highlight js %}
// create tree
var $tree = $('#tree1');
$tree.tree({
    data: data,
    selectable: true
});

var node = $tree.tree('getNodeById', 123);
$tree.tree('selectNode', node);
{% endhighlight %}