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
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
$(#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
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
4 matches
Mail list logo