I have a main html5 page (main.html) and two another html5 pages(country.html and state.html).
country.html page contains a select dropdown list of 250 countries like below.
<select>
<option value="1">Afghanistan</option>
<option value="2">Albania</option>
.....
<option value="1">Canary Islands</option>
</select>
state.html contains select dropdown list of states of 250 countries like below
<select id="1">
<option value="1">Badakhshan</option>
<option value="1">Badghis</option>
............
<option value="32">Zabol</option>
</select>
<select id="2">
<option value="33">Badakhshan</option>
<option value="34">Badghis</option>
............
<option value="68">Vlore</option>
</select>
...............
<select id="250">
<option value="4902">Saba</option>
<option value="4903">Sint Eustatius</option>
............
<option value="4915">Western Equatoria</option>
</select>
I have to show dropdown list of all countries in main.html and another dropdown list of all states of selected country from country dropdown list. main.html is like below
<select id="country">
like to add from country.html
</select>
<select id="state>
like to add from state.html
</select>
Since it is necessary to show country and state dropdown list more than 5 times so i like to use country.html and state.html. How can i do that? Any help or clue is appreciated. Thanks in advance.