Hi,
I'm creating a form for users to input their telephone numbers. Before going to this page they select their country: gb, ie, us, de or ww (world wide). They then proceed to this page where they input their telephone number and select their country code from a long list. Would it be possible (either javascript or ASP) to search through the list (see below) using the two letter country code so that the matching country code is the selected one in the drop down? If ww then the none is selected? It would make the form much easier to use as it's quite a big list.
Thanks a lot for your help!
Here's a party of the (long!!) drop down:
<select name="code">
<option value='247'>AC (+247)</option>
<option value='376'>AD (+376)</option>
<option value='971'>AE (+971)</option>
<option value='93'>AF (+93)</option>
<option value='1'>AG (+1)</option>
<option value='1'>AI (+1)</option>
<option value='355'>AL (+355)</option>
<option value='374'>AM (+374)</option>
<option value='599'>AN (+599)</option>
<option value='244'>AO (+244)</option>
<option value='672'>AQ (+672)</option>
<option value='54'>AR (+54)</option>
<option value='684'>AS (+684)</option>
...
</select>
I'm creating a form for users to input their telephone numbers. Before going to this page they select their country: gb, ie, us, de or ww (world wide). They then proceed to this page where they input their telephone number and select their country code from a long list. Would it be possible (either javascript or ASP) to search through the list (see below) using the two letter country code so that the matching country code is the selected one in the drop down? If ww then the none is selected? It would make the form much easier to use as it's quite a big list.
Thanks a lot for your help!
Here's a party of the (long!!) drop down:
<select name="code">
<option value='247'>AC (+247)</option>
<option value='376'>AD (+376)</option>
<option value='971'>AE (+971)</option>
<option value='93'>AF (+93)</option>
<option value='1'>AG (+1)</option>
<option value='1'>AI (+1)</option>
<option value='355'>AL (+355)</option>
<option value='374'>AM (+374)</option>
<option value='599'>AN (+599)</option>
<option value='244'>AO (+244)</option>
<option value='672'>AQ (+672)</option>
<option value='54'>AR (+54)</option>
<option value='684'>AS (+684)</option>
...
</select>