Dynamic Country / State Dropdown

If you go to http://profile.microsoft.com and edit your personal information, you will choose your country. When a country is selected, information about the city and / or state changes depending on what is expected for that country. Does anyone have examples of how to do this? Is there any service (free service) that provides this information?

+4
source share
5 answers
+2
source

Since you tagged your question with "jquery", here is an example of "Depending on the selected cascade" (which you are looking for))

Demo

+3
source

The CascadingDropdown element will give you this behavior.

+2
source

You should use Javascript to dynamically populate the city / state SELECT tag whenever the country SELECT tag changes, which you can catch using the Event Handler .

+1
source

Well, based on your IP tracking, you can find the user country through your IP address, the entire list of cities, for certain countries that you can find somewhere, and add it to your functions, you probably also need some ajax functions to feed or even better JSON.

0
source

All Articles