datatables and bootscrap - get id row clicked
datatables and bootscrap - get id row clicked
gladsonreis
Posts: 12Questions: 0Answers: 0
Hello! I'm sorry because my english is not the best ...
I'm using bootscrap with table and I need to get the record ID
I'm clicking.
Thanks
I'm using bootscrap with table and I need to get the record ID
I'm clicking.
Thanks
This discussion has been closed.
Replies
You can use a little bit of jQuery if the row has an `id` attribute:
[code]
$('#myTable').on( 'click', 'tbody tr', function () {
alert( 'Clicked on row id: '+this.id );
} );
[/code]
Allan