--- title: setOption name: functions-setoption --- **function setOption(option, value);** Set a tree option. These are the same options that you can set when creating the tree. {% highlight js %} $('#tree1').tree('setOption', 'keyboardSupport', false); {% endhighlight %}