I have a table the code is ,
<table>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
</table>
from the above code i want to add class="row1" in to the each tr by increment id example
<table>
<tr class="row1">
<td class="row11">1</td>
<td class="row12">2</td>
<td class="row13">3</td>
</tr>
<tr class="row2">
<td class="row21">1</td>
<td class="row22">2</td>
<td class="row23">3</td>
</tr>
</table>
how to add the dynamic class id's in to tr and the td in the table , using jquery