A JavaScript library to create country & state dropdown lists containing all the country names and state names.
<script type= "text/javascript" src = "countries.js"></script>
<select onchange="print_state('state',this.selectedIndex);" id="country" name ="country"></select>
<select name ="state" id ="state"></select>
<script language="javascript">print_country("country");</script>