Once more solution:
$("tr td:nth-child(1)").addClass('date');
jQuery HowTo Resource - http://jquery-howto.blogspot.com
On Fri, Jan 9, 2009 at 2:58 AM, Tijmen Smit wrote:
>
> I have a table that contains several , all of them look like
> this.
>
>
>20-04
>
$('tr').find('td:eq(0)')
this will work..
With Regards,
Chandan Luthra
Intelligrape Software Pvt. Ltd.
On Fri, Jan 9, 2009 at 4:04 AM, Mauricio (Maujor) Samy Silva <
css.mau...@gmail.com> wrote:
>
> $('tr > td') // match ALL td's that are children of a tr.
>
> $('tr td:first-child') // match O
$('tr > td') // match ALL td's that are children of a tr.
$('tr td:first-child') // match ONLY td's that are first-child of a tr -
this is the selector Tijmen is asking for.
Regards,
Mauricio
I believe you have two options:
$('tr>td')
or
$('tr td:first-child')
i've never used fir
I believe you have two options:
$('tr>td')
or
$('tr td:first-child')
i've never used first-child myself so i may understand it wrongly.Let me know !
On Thu, Jan 8, 2009 at 10:58 PM, Tijmen Smit wrote:
>
> I have a table that contains several , all of them look like
> this.
>
>
>
4 matches
Mail list logo