Hello, I am trying to get a tree view thing working in jQuery, but I don't want anything overly complicated like some of the tree view plugins I have seen (and tried to customise).
My code is modified from http://pixelcarnage.net/articles/development/jquery-collapsible-menu/ (currently down) and can be seen at: http://www.njday.com/jquery/search3.html. This code will be used as a very basic file/folder browser. Under "Section B" I have an "li" with a value of "InnerFolder", which I would like to appear red (representing a folder), and the "ul" underneath it should remain closed (hidden) until "InnerFolder" is clicked on. Folders may have many subfolders and subsubfolders. Basically, the idea is that tree expands one level at a time. I have a feeling the solution lies in showing/hiding the "children" or "siblings" of a "li"? But I'm fairly new to jQuery so I'm not sure exactly how this works - have been studying the API for hours without making any progress. Any help you guys could give would be great! Cheers, Nick