Skip to content

A JavaScript library to create country & state dropdown lists containing all the country names and state names.

Notifications You must be signed in to change notification settings

baqirfarooq/Countries-States-Dropdown-List

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Country & State Dropdown List JavaScript library

A JavaScript library to create country & state dropdown lists containing all the country names and state names.

How to Use:

In Head/Footer section:

<script type= "text/javascript" src = "countries.js"></script>

In Body Section:
Select Country Dropdown

<select onchange="print_state('state',this.selectedIndex);" id="country" name ="country"></select>

Select City/State Dropdown

<select name ="state" id ="state"></select>

Initialize Library Script

<script language="javascript">print_country("country");</script>

About

A JavaScript library to create country & state dropdown lists containing all the country names and state names.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published