Get Average of Numbers in a Column of HTML Table
Posted on 2007-03-21
for (i=1;i<13;i++) sum+=1*document.getElementById("numTable").rows[i].cells[j].innerHTML;
Instead of showing the sum of Column 6, however, I would like to show the mean average. How would I modify the script to do that?