Also...

I had to modify my original implementation which was for a <dl> to
also work with the following structure:

<ul class="accordion">
    <li>
        <a href="#">Title</a>
        <ul>
            <li><a href="#">Content</a></li>
        </ul>
    </li>
</ul>

This is a similar structure to the ones proposed in that the title and
content tags have the same sibling relationship, but the kicker is the
additional layer of abstraction of the <li> around every pair. I also
had to detect whether there was a sibling <ul> before attaching the
onclick so that the link would work as normal if there was no subnav
to show.  I was able to get this to work in one plugin with an
additional mode:'ul' option, but it was a pain. I wanted to add it to
the discussion because I'm not sure if it's an additional requirement,
or just a different plugin.

Paul

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to