How Do I Create Expand All and Collapse All Links Outside of the jQuery Treeview Plugin?

Posted by Ben Griswold on Stack Overflow See other posts from Stack Overflow or by Ben Griswold
Published on 2010-04-08T21:40:40Z Indexed on 2010/04/08 21:43 UTC
Read the original article Hit count: 318

Filed under:
|
|

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 treeview from other page elements outside of the treeview itself. I've looked at the source, but I can't figure it out.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-plugins