View on GitHub

Country-state-select.js

Free JavaScript Country/State Select pluin

Download this project as a .zip file Download this project as a tar.gz file

CountryState-Select.js

Free JavaScript Country/State Select pluin

use

<script src="country-state-select.js"></script>
Select Country (with states):
<select id="country"></select>
State:
<select id="state"></select>
<br/>
Select Country (without states):
<select id="country2" name="country2"></select>
<script language="javascript">
            populateCountries("country", "state");
            populateCountries("country2");
</script>


Demo







MIT License