Reputation: 127
I have a JSfiddle with a datatables where in order to get the last column (col #3 as they start count at 0) to sum up the numbers I included per SO answer Datatables “footerCallback” function not displaying results in footer but it does not do anything.
$("#example").append('<tfoot><th></th><th></th><th></th><th></th></tfoot>');
Does anyone see why it does not display ?
Upvotes: 1
Views: 1816
Reputation: 58880
You were using wrong index (5
instead of 3
) and one of the rows had non-numeric Tokyo
instead of the salary.
See updated example for code and demonstration.
Upvotes: 1