On Mon, Mar 1, 2010 at 5:06 AM, Aaron Johnson
<[email protected]> wrote:
> The top level list has an ID and associated css, I'd like to add a class to
> each of the nested <ul> elements in order to style them differently. I
> cannot manually add a class so wondered if I could do it with jQuery.
>
> I'm looking for a result like this:
>
> <ul class="foo">
> <li><a title="Announcements1" href="foo.html"><span
> class="portal-navigation-label">Home</span></a>
> <ul class="bar">
If all of the inner uls are styled the same you don't need a class,
just add a rule to your css:
ul.foo > li > ul {
/* style stuff */
}
Nathan