On Mar 3, 1:15 pm, alanfluff wrote:
> Hi,
>
> I am embarrassed to say I can't find a way to select the third cell in
> each row of a table and add a class to it.
Have you considered using col elements and adding the class to them?
http://www.w3.org/TR/html401/struct/tables.html#edef-COL >
It
Thanks very much mkmanning -- I realise now that the scope of eq is
the whole doc and nth-child is all n-th children of the parent. Sigh,
one day I will see this stuff more quickly myself -- meantime, thanks
again ^_^
-Alan
On Mar 2, 11:01 pm, mkmanning wrote:
> $('.vfOptions tr td:nth-child(3
$('.vfOptions tr td:nth-child(3)').addClass('status');
On Mar 2, 7:15 pm, alanfluff wrote:
> Hi,
>
> I am embarrassed to say I can't find a way to select the third cell in
> each row of a table and add a class to it.
>
> I tried this:
>
> $('.vfOptions tr td').eq(2).addClass('status');
>
3 matches
Mail list logo