How Do I Create Expand All and Collapse All Links Outside of the jQuery Treeview Plugin?
- by Ben Griswold
The jQuery Treeview Plugin adds Collapse All, Expand All and Toggle All links to the "treeviewcontrol" div when the control property is defined as follows:
$("#black, #gray").treeview({
control: "#treecontrol",
persist: "cookie",
cookieId: "treeview-black"
});
This works great, but I'd like the ability to expand and collapse the…