Cordial Greeting.
I need your collaboration.
I have a php table: with BD records
<td id="<?php echo $row['Solc_idx']; ?>"><input type="button" class="btn btn-primary" value="Procesar"></td>
The case is that that would be the ID, of the record of the BD and I capture it with JS, in the following way:
$(function(){
$('table').on('click', 'td', function(){
console.log( 'Valor: ' + $(this).prop('id') );
});
});
The case is that way that way if I take the ID, but I take it when I click anywhere in the TD, I mean the row, what I want is to take it only when you click on the button that is in the row of the table, not in the whole table
I do not know if they understand me.
Thank you, I remain attentive