Calculate Sum (Total) of DataTables Column using Footer Callback asp.net mvc code example
Example: column.footer jquery
var table = $('#example').DataTable();
var column = table.column(0);
$(column.footer()).html(
column.data().reduce(function(a, b) {
return a + b;
})
);