Reputation: 2676
I used JQuery TreeView in large mode I want to collapse all items except of root how I can change jquery.treeview.js to do this ?
Upvotes: 1
Views: 5132
Reputation: 101
Just do the following, it must work:
$("#navigation").treeview({
collapsed: true,
unique: true,
"expanded": true,
persist: "location"
})
.find('div.hitarea:first')
.click();
Upvotes: 0
Reputation: 56
well..not the cleanest solution maybe, but seems to work:
$("#navigation").treeview({collapsed:true}).find('div.hitarea:first').click();
greez ay
Upvotes: 4