[jQuery] Re: how to select all first td's inside all in a table

2009-01-08 Thread jQuery Lover
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 >

[jQuery] Re: how to select all first td's inside all in a table

2009-01-08 Thread Chandan Luthra
$('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

[jQuery] Re: how to select all first td's inside all in a table

2009-01-08 Thread Mauricio (Maujor) Samy Silva
$('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

[jQuery] Re: how to select all first td's inside all in a table

2009-01-08 Thread Alexandre Plennevaux
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. > > >