Thanks! That got me on the right path, Leonardo.
Ended up making each background a different color:
var colors = new Array("#FC9596","#AF79BB","#A5C0DA","#D2E746");
$("#menuh li.top > a").each(function (i) {
$(this).css("background-color",colors[i]);
});
On Oct 25, 5:20 pm, Leona
$('#menu li.top > a').css('background-color', 'tan');
The selector is just like CSS.
On Sun, Oct 25, 2009 at 10:25, breadwild wrote:
>
> Hello,
>
> I'm building a nested menu where I want to add background colors only
> to top menu items. I can't change the generated code, so I have to
> live w
2 matches
Mail list logo