Hi. My first post here.
I have an established site but would like to improve a checkout page. On it I have java code to calculate appropriate postage rate.
Currently I have UK, Europe and World radio inputs but would like a drop down of all countries to return the relevant postage zone rate for the existing Javascript code;
Select Your Carriage:
<input type="radio"
checked name="cost3" value="0"
onclick="typeOfCarriage('uk');calculate()">
UK
<input type="radio" name="cost3" value="3"
onclick="typeOfCarriage('europe');calculate()">
Europe
<input type="radio"
name="cost3" value="4.5"
onclick="typeOfCarriage('world');calculate()">
World
<input type="button" name="calcButton"
value="Calculate Total" onclick="calculate()"><br><br>
<div align=center><b></h2><h4>Total: English Pounds GBP </b>
<input
type="text" size="7" name="cost" value="0"
onfocus="setTimeout('defocus()',1)">
If anyone more in the know could suggest how a dropdown of countries could be used instead of this radio method I would be very grateful, please?!
Cheers, Mark (Nottingham).
I have an established site but would like to improve a checkout page. On it I have java code to calculate appropriate postage rate.
Currently I have UK, Europe and World radio inputs but would like a drop down of all countries to return the relevant postage zone rate for the existing Javascript code;
Select Your Carriage:
<input type="radio"
checked name="cost3" value="0"
onclick="typeOfCarriage('uk');calculate()">
UK
<input type="radio" name="cost3" value="3"
onclick="typeOfCarriage('europe');calculate()">
Europe
<input type="radio"
name="cost3" value="4.5"
onclick="typeOfCarriage('world');calculate()">
World
<input type="button" name="calcButton"
value="Calculate Total" onclick="calculate()"><br><br>
<div align=center><b></h2><h4>Total: English Pounds GBP </b>
<input
type="text" size="7" name="cost" value="0"
onfocus="setTimeout('defocus()',1)">
If anyone more in the know could suggest how a dropdown of countries could be used instead of this radio method I would be very grateful, please?!
Cheers, Mark (Nottingham).
Last edited by a moderator: