The code I used to increment the cell value. But instead of +1 only it will do like this
0 1 3 6 10 15 21 28...
here is my code:
function incNumber(){
var qtyValue = 0;
var table = $('#example').DataTable();
$('#example tbody').on('click', 'td', function(){
qtyValue = parseInt(table.cell(this, 5).data());
qtyValue++;
table.cell(this, 5).data(qtyValue);
});
}