Feedback on: irt.org FAQ Knowledge Base Q131
Worth:
Not worth reading
Technical:
Not technical enough
Comments:
This was an idiotic answer that did not answer the question.
Comments:
Use parseInt() or parseFloat() methods to assign the form text variables to numeric variables and perform your maths on the new variables. eg:
numvar = parseFloat(formelementvalue);
If formelementvalue contains '30.1' then numvar will be equal to 30.1 numeric.
Worth:
Very worth reading
Comments:
i've been searching for give or take 3 hours for how to convert a string to a number.
goddamn, what can i say?
thanks.
Length:
Too short
Comments:
I think the problem is in concatenating strings.
Try parseInt() or parseFloat() method.
Technical:
Not technical enough
Comments:
I tried this script, and all the alert did was return the value of the last text box. It didn't add them up. Any help on this would be much appreciated!