i have html table layout from cms. The table can have various rows and from the cms side i can't count it.
But in the table i want to have first column with count number for every row.
I found how i can count all rows number with JS but can't find how to let JS to write numbers in specific column for every row.
my table looks like
<table id="mytable">
<tr>
<td class="number">...here i want number 1</td>
<td>content</td>
<td>content</td>
<td>content</td>
</tr>
<tr>
<td class="number">...here i want number 2</td>
<td>content</td>
<td>content</td>
<td>content</td>
</tr>
</table>
Thank you a lot for any advices..