I have a form that has two columns of numbers.
this form is the second form in the series of forms and can have different number of rows (selected by user in the previous form) therefore I name the textboxes with an array (for example COLA, COLA)
I am trying to add a button that adds up the numbers users enter.It does not work. What am I doing worng?
Here is my code:
var SUMA = 0;
var SUMB = 0;
var SA = parseFloat(form.COLA.value) + parseFloat(form.COLA.value);
var SB = parseFloat(form.COLB.value) + parseFloat(form.COLB.value);
form.SUMA.value = SA;
form.SUMB.value = SB;