var t = $('#tt');var roots = t.tree('getRoots');for(var i=0; i<roots.length; i++){ t.tree('check', roots[i].target);}