Thanks for this, I tried it and firebug tells me it didn't work :( The thing is :last doesnt seem to work AT ALL for me, EG:
$("ul li:last").css("border", "1px solid red"); does absolutely nothing On Jan 15, 4:06 pm, MorningZ <morni...@gmail.com> wrote: > that will get the :last(or :first) for the first row only.... as it > will return 1 single object > > you need to do something like > > $("tr").each(function() { $(this).find("td:last").css("border", > "none"); }); > > which will loop across each row and do the code to thelastor first > object > > On Jan 15, 9:05 am, the cliff <leperisl...@gmail.com> wrote: > > > Hi there, I am doing some table row colouring with :odd (this works as > > expected), but: > > > $("tr td:last").css("border", "none"); > > > does nothing! I did some further testing on other selectors with other > > more obvious classes and the selector :lastand :first don't seem to > > select anything. > > > I have tried this with jQuery 1.2 and 1.3. > > > Any help would be appreciated, thanks