<table>
<tr>
<td></td>
<td>Row</td>
</tr>
<tr>
<td></td>
<td>Row</td>
</tr>
<tr>
<td></td>
<td>Row</td>
</tr>
<tr>
<td></td>
<td>Row</td>
</tr>
</table>
<script>
$('table tr').each(function(i) {
var number = i + 1;
$(this).find('td:first').text(number);
});
</script>
|