Here's how:
//
// create datatable
//
var table = $('#table').DataTable({
...
...
});
//
// handle clicks of the action selector
//
$('.action-selector').click(function(ev){
var rowdata = table.row( $(this).parents('tr') ).data();
//
// rowdata now has the data from the row that 'action-selector' was clicked on
//
}

No comments:
Post a Comment