How do you add the selected value of one combobox to another
I have a form with 2 selects like this:
<form id="form1">
<select id="countries" onChange="loadCountry()">
<option value="France">France</option>
<option value="UK">UK</option>
</select>
<select id="country">
</select
the onchange="loadCountry()" script looks something like
<script>
function loadCountry()
???form1.country.add???? = form1.countries.option(form1.countries.selectedindex).value
end function
</script>
So basically, how do i populate the combobox "country" with UK once i have selected it from countries?
I'm sure this is quite easy, so thanks for your help.
I have a form with 2 selects like this:
<form id="form1">
<select id="countries" onChange="loadCountry()">
<option value="France">France</option>
<option value="UK">UK</option>
</select>
<select id="country">
</select
the onchange="loadCountry()" script looks something like
<script>
function loadCountry()
???form1.country.add???? = form1.countries.option(form1.countries.selectedindex).value
end function
</script>
So basically, how do i populate the combobox "country" with UK once i have selected it from countries?
I'm sure this is quite easy, so thanks for your help.