Click to See Complete Forum and Search --> : calculate...


nipper21
04-24-2003, 09:23 AM
Hello.. i have a little problem..
i have a form that contains 6 inputs...
What i want is when i go away from the 3rd input, (onBlur) that action calls some javascript that make:
(Input1 + Input2) * Input3

Thanks

:p

Jona
04-24-2003, 09:30 AM
If using decimals: parseFloat(document.myform.mytextbox.value)+parseFloat(document.myotherform.myothertextbox.value)*pa rseFloat(document.mysameform.myotherothertextbox.value);

If not using decimals, use parseInt()