how to get data from selectd row ?? so please help me. i m using .net
how to get data from selectd row ?? so please help me. i m using .net
avinashpats
Posts: 1Questions: 1Answers: 0
i m trying following code to select data from data table but its not working
$('#datatable tbody').on('click', 'tr', function () {
if ($(this).hasClass('selected')) {
$(this).removeClass('selected');
console.log($('#datatable tbody').row(this).data());
}
else {
$('#datatable tbody tr.selected').removeClass('selected');
$(this).addClass('selected');
}
});
This discussion has been closed.
Answers
Should be:
Allan