jQuery: select the last cell in a row (or the n-th cell) 

Joined:
02/21/2009
Posts:
130

July 07, 2010 16:24:30    Last update: July 07, 2010 16:24:30
Select the last cell in a row for all rows:
$('td:last', '#sessionsTable tr').each(function() {
    alert(this.innerHTML);
})


Select the 3rd cell in a row for all rows:
$('td:eq(3)', '#sessionsTable tr').each(function() {
    alert(this.innerHTML);
})
Share |
| Comment  | Tags