The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
I have a smallish table with a few columns, the last being costs, would like to write a little script to add up the costs, work out the total and the average cost.
Just a bit confused as to how I get the value in each of the end columns to add up?
Anyone give me some pointers?
Cheers
Think I'll just leave it and concentrate on something better.
> I would place each value in an array and have JavaScript simply print
> out each value in the required column using a loop, then add up the
> total at the end and print that out as well.
The table is already created, don't really fancy changing it as I'd need to use the script again on a much larger table which is already created...
I've a rough idea how to go about it but have no idea how to access the numerical data in the last column of each row.. this seems to be the bit thats causing me the most problems at the moment..
I have a smallish table with a few columns, the last being costs, would like to write a little script to add up the costs, work out the total and the average cost.
Just a bit confused as to how I get the value in each of the end columns to add up?
Anyone give me some pointers?
Cheers