Get the Previous and Next Value of the currently clicked row

Get the Previous and Next Value of the currently clicked row

iccyiccy Posts: 1Questions: 1Answers: 0
edited February 2017 in Free community support

// 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.