[jQuery] Re: Get contents of first child tr, td with class

2009-03-05 Thread webspee...@gmail.com
How would you get the second, third and so on? On Feb 12, 2:21 pm, James james.gp@gmail.com wrote: $(#recent_activity tbodytrtd.date:first).text(); On Feb 12, 9:13 am, Mark Steudel msteu...@gmail.com wrote: I have a table like so: table id=recent_activity thead tr tht1/th

[jQuery] Re: Get contents of first child tr, td with class

2009-03-05 Thread ricardobeat
You're confusing :first with :first-child. :first-child means the element must be the first child of it's parent - the tbody never is, that would be the thead. Also you have the .activity_date class in your selector but .date in your HTML. From your code this is what you need to get the content

[jQuery] Re: Get contents of first child tr, td with class

2009-02-12 Thread James
$(#recent_activity tbody tr td.date:first).text(); On Feb 12, 9:13 am, Mark Steudel msteu...@gmail.com wrote: I have a table like so: table id=recent_activity thead tr tht1/th tht2/th /tr /thead tbody tr tdvalue/td td class=date2008-09-01/td --- want this content /tr tr

[jQuery] Re: Get contents of first child tr, td with class

2009-02-12 Thread Mark Steudel
Thanks, though that didn't work for me, though it could be more my page doesn't match my example totally. Though I did just come up with this, and this seems to work: $('.activity_date:first').html() ; On Feb 12, 11:21 am, James james.gp@gmail.com wrote: $(#recent_activity tbody tr