nothing wrong with the math, but one thing about text boxes. they return a variable of type "string".
so if you have input1 as 1.39 and input2 as 3.46 and say
total=input1+input2;
total will wind up as a string, "1.393.46"
yuk!
just explicitly convert to a number:
total=number(input1)+number(input2);




Reply With Quote