inside jquery datatable I'm using sum plugin in order to sum values from particular column
$('#example').DataTable( {
drawCallback: function () {
var api = this.api();
$( api.table().footer() ).html(
api.column( 4, {page:'current'} ).data().sum()
);
}
} );
How can use this api call to calculate another column (for example column 6).
$( api.table().footer() ).html(
api.column( 4, {page:'current'} ).data().sum()
// calculate column 7
);
also calculate result is injected inside first column of the footer instead of 4.