damon2003
10-22-2003, 05:30 AM
Hi,
I have a function that contains the following code:
newValue=(value2 * 0.05);
document.form.txtfield.value=newValue;
It simple takes a value from a textfield and multiplies it by 0.05.
However, the problem is that if the value inputed in the textfield is less than 10, then the nothing is written to the new textfield. If this something to do with parsing? But why does it work if the user inputs a number over 10,
thanks a lot
I have a function that contains the following code:
newValue=(value2 * 0.05);
document.form.txtfield.value=newValue;
It simple takes a value from a textfield and multiplies it by 0.05.
However, the problem is that if the value inputed in the textfield is less than 10, then the nothing is written to the new textfield. If this something to do with parsing? But why does it work if the user inputs a number over 10,
thanks a lot