Get the Previous and Next Value of the currently clicked row
Get the Previous and Next Value of the currently clicked row
iccy
Posts: 1Questions: 1Answers: 0
// from the example
var TBL_datatables = $('#tbl_datatables').DataTable();
$('#tbl_datatables tbody').on('click', '.glyphicon-arrow-up', function () {
// current row data
var rowdata = TBL_datatables.row($(this).parents('tr')).data();
console.log(rowdata);
// What I want is to get the next or the previous data
// Thank you so much in advance
});
This discussion has been closed.