I have a generated table on my JSP that contains data for transactions: each individual transaction is a row, and there\'s a column for category, amount, type, and descripti
I have no knowledge about JSP but i assume that Roman C is right.
But if you wan't to solve this with javascript here is a working example:
var sum = 0;
var table = document.getElementById("res");
var ths = table.getElementsByTagName('th');
var tds = table.getElementsByClassName('countable');
for(var i=0;i
Link to a jsfiddle https://jsfiddle.net/4cetuvno/1/