arc2002
11-11-2004, 03:59 PM
Hi,
I was wondering if anyone could help me? I am making an order form and am trying to calculate the cost. I have two drop down boxes which each have two options. The first is "8:30 - 4:30" & "8:00 - 6:00" now the cost for each are £17.50 and £20.00. I want to be able to automatically calculate the cost when the user selects each day and time.
example
Day 1 [8:00 - 6:00] Day 2 [8:00 - 6:00]
total (£40.00)
here is the code for the form i have at present:
<form name="form1" method="post" action="">
Day 1
<select name="day1" id="day1">
<option>8:30 - 4:30</option>
<option>8:00 - 6:00</option>
</select>
Day 2
<select name="day2" id="day2">
<option>8:30 - 4:30</option>
<option>8:00 - 6:00</option>
</select>
<br>
<br>
Total:
<input name="total" type="text" id="total" size="6">
</form>
Thank you for your help, I am just starting out with javascript and can't find anything in books or on the web.
Thanks Again,
Andy
I was wondering if anyone could help me? I am making an order form and am trying to calculate the cost. I have two drop down boxes which each have two options. The first is "8:30 - 4:30" & "8:00 - 6:00" now the cost for each are £17.50 and £20.00. I want to be able to automatically calculate the cost when the user selects each day and time.
example
Day 1 [8:00 - 6:00] Day 2 [8:00 - 6:00]
total (£40.00)
here is the code for the form i have at present:
<form name="form1" method="post" action="">
Day 1
<select name="day1" id="day1">
<option>8:30 - 4:30</option>
<option>8:00 - 6:00</option>
</select>
Day 2
<select name="day2" id="day2">
<option>8:30 - 4:30</option>
<option>8:00 - 6:00</option>
</select>
<br>
<br>
Total:
<input name="total" type="text" id="total" size="6">
</form>
Thank you for your help, I am just starting out with javascript and can't find anything in books or on the web.
Thanks Again,
Andy