E
elji
In my form, I have 4 objects that I want to work together:
<input name="price" type="text" id="price" value="100" size="4">
<input name="quantity" type="text" id="quantity" value="1" size="2">
<input name="shipping" type="radio" value="slow">
<input name="shipping" type="radio" value="fast">
<input name="total" type="text" id="total" size="8">
I 'd like that when someone checks the first radiobutton (slow),
the "total" textfield shows: price x quantity + 5
and when someone checks the second radiobutton (fast),
the "total" textfield shows: price x quantity + 10
Sadly, I don't know javascript, but there's got to be an easy way to do
that, right?
Thanks to all who will answer, any link to a page that has something
similar would also be appreciated.
<input name="price" type="text" id="price" value="100" size="4">
<input name="quantity" type="text" id="quantity" value="1" size="2">
<input name="shipping" type="radio" value="slow">
<input name="shipping" type="radio" value="fast">
<input name="total" type="text" id="total" size="8">
I 'd like that when someone checks the first radiobutton (slow),
the "total" textfield shows: price x quantity + 5
and when someone checks the second radiobutton (fast),
the "total" textfield shows: price x quantity + 10
Sadly, I don't know javascript, but there's got to be an easy way to do
that, right?
Thanks to all who will answer, any link to a page that has something
similar would also be appreciated.