I've been working on updating our legacy product to be "Modernized". One of the pages had some simple calculations at the bottom of a table handled by the server. As part of the modernization effort I'm moving those calculations to the client side.
Since all of our tables utilize DataTables, this should be a very simple:
The original documentation shows adding the calculations to a single row in the tfoot, however, this would not work for me.
As you can see from above, I cheated and used jQuery set the values on each row explicitly.