0
I’m trying to get the ID of the selected line with :checked but I’m not getting it.
HTML
<table id="dividas">
<thead class="thead-inverse">
<tr>
<th>#</th>
<th>ID</th>
<th>Nome</th>
<th>Fone</th>
</tr>
</thead>
<tbody>
<tr>
<td><input type="checkbox"></td>
<td>01</td>
<td>Pedro</td>
<td>+55 82 866 869 869</td>
</tr>
<tr>
<td><input type="checkbox"></td>
<td>02</td>
<td>Carlos</td>
<td>+55 82 866 869 869</td>
</tr>
</tbody>
</table>
SCRIPT
$('#save').click(function () {
$('#dividas').find('input[type="checkbox"]:checked').each(function () {
//retornar valor de uma coluna
});
});
Very good this code, but the idea is to take all the Ids of the selected lines for me to send to a REQUEST and execute a QUERY.
– André Cabral
Ah, beauty! I got the question wrong, pardon... :v I will edit the answer...
– Luiz Felipe
Luiz, your code is gone. I did a test with a code posted and it worked here, but it is no longer posted.
– André Cabral
That’s right. Thank you very much
– André Cabral