selectReturns: jQuery Object

Select node from the tree.

Parameters

NameTypeDescription
node {Object} The node as jquery object.

Examples

Sample

    
 <button onclick="tree.select(northAmerica)">Select North America</button>
 <button onclick="tree.unselect(northAmerica)">Unselect North America</button>
 <br/><br/>
 <div id="tree" data-source="/Locations/Get"></div>
 <script>
     var tree, northAmerica;
     tree = $('#tree').tree({
         checkboxes: true,
         primaryKey: 'ID',
         dataBound: function () {
             northAmerica = tree.getNodeByText('North America');
         }
     });
 </script>