johnnyi
06-17-2005, 02:22 PM
Hi all,
I have four textboxes that will be prefilled with values when the user opens the page and I'm trying to write a script to calculate the average of these textboxes - result to appear in another textbox. For example:
Text Box 1: 10
Text Box 2: 15
Text Box 3: 25
Text Box 4: 30
Text Box 5: 20 (trying to have this box calculate the average of boxes 1-4)
I searched google and only found one that touched on this, but couldn't get it to work in this environment. Does anyone have anything that they have used in the past?
Much appreciated.
- i
I have four textboxes that will be prefilled with values when the user opens the page and I'm trying to write a script to calculate the average of these textboxes - result to appear in another textbox. For example:
Text Box 1: 10
Text Box 2: 15
Text Box 3: 25
Text Box 4: 30
Text Box 5: 20 (trying to have this box calculate the average of boxes 1-4)
I searched google and only found one that touched on this, but couldn't get it to work in this environment. Does anyone have anything that they have used in the past?
Much appreciated.
- i