I used JQuery TreeView in large mode I want to collapse all items except of root how I can ch开发者_JAVA技巧ange jquery.treeview.js to do this ?
well..not the cleanest solution maybe, but seems to work:
$("#navigation").treeview({collapsed:true}).find('div.hitarea:first').click();
greez ay
Just do the following, it must work:
$("#navigation").treeview({
collapsed: true,
unique: true,
"expanded": true,
persist: "location"
})
.find('div.hitarea:first')
.click();
精彩评论