How to select the current row with a button action ? this statemet is not working table.row($(this

How to select the current row with a button action ? this statemet is not working table.row($(this

warnerxpwarnerxp Posts: 4Questions: 1Answers: 0

Hi Help Please

I added a button to my table

{
"targets": 8,
"data": null,
"defaultContent": "<button class='btn btn-info' >Select!</button>"
},

But I cannot select the current row when the user did click the error is undefined this line var data = table.row($(this).parents('tr')).data();

var table = $('#AvailableSignatoriesRemoval').DataTable();
$('#AvailableSignatoriesRemoval tbody').on('click', 'button', function () {
var data = table.row($(this).parents('tr')).data();

        });

Answers

This discussion has been closed.