|
|
Q48 How do I sum form field values together?
irt.org | Knowledge Base | JavaScript | Form 6 | Q48 [ previous next ] Q48 How do I sum form field values together?Because form field values are always strings it is necessary to convert them to numbers before summing them. For example if you do:
Then the variable c would contain '12'. The Netscape recommended solution is to do the following:
Now the variable c would contain '3'. Feedback on 'Q48 How do I sum form field values together?' |
-- div -->
|