How to get every state or province in the world based on Cou

I am requiring users who register on my site to specify their location. For this I have 2 selects:Country State/ProvinceI found snippets online that list every country in a select option format. But how can I populate the State/Province dropdown based on what the user selected in the 1st country dropdown?I know I have to do it …

via PHP Website Development » Search Results » ajax:

How to get every state or province in the world based on Cou

I am requiring users who register on my site to specify their location. For this I have 2 selects:
Country

State/ProvinceI found snippets online that list every country in a select option format. But how can I populate the State/Province dropdown based on what the user selected in the 1st country dropdown?
I know I have to do it through AJAX, but I am referring to the data itself. What can I use to determine all the states/provinces for each country in the world?
And what would be an example of the implementation please.
……………………………………….

Your question has been answered many times:
Check out my answers
How to format a drop down list to use only selected answers depending on first dropdown
Setting up a live refresh on select drop down

For more info: How to get every state or province in the world based on Cou

PHP Website Development » Search Results » ajax

How to get every state or province in the world based on Cou

Share this post:

Related Posts

Leave a Comment