Sherri
|
| Posted: 10/05/2004, 10:51 AM |
|
I need help with my code that is adding two values. Here is the code:
document.Q_PostMigrationCompleted.TotalAll.value = Q_PostMigrationCompleted.DBTotal.value+Q_PostMigrationCompleted.RemedyTotal.value;
With this input, if I enter 65 in the DBTotal field, and 2 in the RemedyTotal field, the TotalAll field comes up with a total of 652. It just appended the numbers. The total should have been 67.
Any help is greatly appreciated!
|
|
|
 |
Sean
Posts: 39
|
| Posted: 10/05/2004, 1:15 PM |
|
Try this.
document.Q_PostMigrationCompleted.TotalAll.value = Number(Q_PostMigrationCompleted.DBTotal.value) + Number(Q_PostMigrationCompleted.RemedyTotal.value);
|
 |
 |
Sherri
|
| Posted: 10/06/2004, 6:05 AM |
|
Thank you - that worked!
|
|
|
 |
|