There is a html table. It is necessary to do with Jquery, so that when you click on the first cell of any row, the index of the row in which this cell is located is transferred.
Html table:
<table id="mytable" border="1"> <tr> <td>1</td><td>2</td><td>3</td> </tr> <tr> <td>2</td><td>2</td><td>2</td> </tr> <tr> <td>3</td><td>3</td><td>3</td> </tr> </table>