I am developing a system in which I need to obtain a data (ID) of a row whose column is with the attribute hidden
.
Table code
<table id="tbl_Datos">
<thead>
<tr>
<th hidden>ID</th>
<th>Nombre</th>
<th>Seleccionar</th>
</tr>
</thead>
<tbody>
<tr>
<td hidden="">1</td>
<td>Juan</td>
<td><input type="checkbox" name="datos"></td>
</tr>
<tr>
<td hidden="">2</td>
<td>Paco</td>
<td><input type="checkbox" name="datos"></td>
</tr>
<tr>
<td hidden="">3</td>
<td>Pedro</td>
<td><input type="checkbox" name="datos"></td>
</tr>
</tbody>
</table>
What I want is just to obtain a data by selecting the checkbox and deselecting if I had previously marked another checkbox. (I want to get the id).