The markup will be generated from a MySQL database using PHP so it
could look in many different ways.
But as I have it now:

<p><a href="#" id="ExpandAll">[+expand]</a> | <a href="#"
id="CollapseAll">[-collapse]</a></p>
<ul>
        <li><a href="#" class="Category">category 1</a>
                <ul>
                        <li><a href="#" class="Category">category 1 1</a>

                                <ul>
                                        <li><a href="#">file 1 1 1</a></li>
                                        <li><a href="#">file 1 1 2</a></li>
                                        <li><a href="#">file 1 1 3</a></li>
                                        <li><a href="#">file 1 1 4</a></li>
                                        <li><a href="#">file 1 1 5</a></li>

                                </ul>
                        </li>
                        <li><a href="#">file 1 1</a></li>
                        <li><a href="#">file 1 2</a></li>
                        <li><a href="#">file 1 3</a></li>
                        <li><a href="#">file 1 4</a></li>
                        <li><a href="#">file 1 5</a></li>

                </ul>
        </li>
</ul>


On Oct 13, 12:43 am, Dave Methvin <[EMAIL PROTECTED]> wrote:
> There is a lot of similar-looking code there. You could use .toggle()
> but the added complication of OpenAll/CloseAll makes that tough. What
> does your markup look like?

Reply via email to