how can i do it. i want to make to list countries and cities. after user will be choose a country. he will choose also cities too. Any idea?
how can i do it. i want to make to list countries and cities. after user will be choose a country. he will choose also cities too. Any idea?
There are several ways - in simple terms:
1. Build two arrays, one for country and one for city. Then assign a dropdown menu for each array and have the user select their options.
2. Build one array with all country and city data. When they select a country then the cities for that country are displayed.
3. download a pre-existing array dataset that has all the information in there.
4. Include a third party script that adds the values to your website.