If you just need to a open to function before the tree is created you can do this
$('li#com_5').addClass('open').parents('li').addClass('open'); $('#treee').treeview({collapsed:true,unique:true}); Then it open the tree to the node where the li has id com_5