Topic awaiting preservation: having trouble adding a bunch of values! (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: sj, ca, usa |
posted 09-18-2002 23:15
ok, i have this form that has 10 fields in it. to make it simple, i named these fields T1, T2, .. , T10. also added a code block as so, to do a grand total calculation: code: function getInvoiceTotal()
|
Paranoid (IV) Mad Scientist From: Somewhere over the rainbow |
posted 09-18-2002 23:56
The poster has demanded we remove all his contributions, less he takes legal action. |
Paranoid (IV) Inmate From: Lebanon |
posted 09-19-2002 10:50
quote:
quote:
|
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 09-19-2002 17:16
Lallous: your code should also work, but sometimes using eval() on a form value is desired, since it allows the user to enter things like "3+5" and get 8. Of course, it also opens the script up to errors, but sometimes that's not a concern. |