D
David
Hi,
I have the following script given to me by a very helpful person on
this group.
It basically copies the contents of Textbox 1 on my form to Textbox 2
with some adjustments.
What I now want to do is, if Textbox 1 is entered as 0 (zero), then I
want textbox2 to display 0 (zero) also.
I need to say something like,
if x.value = 0, then y.value = 0 else
Run function below......
__________________________________
var squantity = <%= request.querystring("Quantity") %>;
function doCalc(x,y){
y.value = 1*x.value + 1*squantity - 1;
}
___________________________________
Appreciate your help.
David
I have the following script given to me by a very helpful person on
this group.
It basically copies the contents of Textbox 1 on my form to Textbox 2
with some adjustments.
What I now want to do is, if Textbox 1 is entered as 0 (zero), then I
want textbox2 to display 0 (zero) also.
I need to say something like,
if x.value = 0, then y.value = 0 else
Run function below......
__________________________________
var squantity = <%= request.querystring("Quantity") %>;
function doCalc(x,y){
y.value = 1*x.value + 1*squantity - 1;
}
___________________________________
Appreciate your help.
David