PDA

View Full Version : Help please!!!


o0_Enigma_0o
08-13-2002, 09:35 AM
Can sombody help me with this

I have a huge web form at www.orian.co.uk/Lighting/index.html
anyway
I have some text boxes named total1 and qty1
i need total1 to have the value of qty1 * 8.50
Anyway i have looked everywhere
Can somebody please help
thx

beetle
08-13-2002, 03:09 PM
<input type="text" id="qty1" onBlur="this.form.total1=this.value*8.5">

o0_Enigma_0o
08-13-2002, 03:27 PM
<input type="text" name="qty1" onBlur="total1.value=this.value*8.50" size="5" value="0">
thx this works fine

I have one more question

is there anyway of making it use *8.50 if the value of qty1 is less then 5?
and if its 5 + it will use *7.65

Thanks inadvance

beetle
08-13-2002, 03:40 PM
Oops, sorry. Typo<input type="text" id="qty1" onBlur="this.form.total1.value=this.value*8.5">