Answer the question
In order to leave comments, you need to log in
How to dynamically load a list of cities when selecting a country select?
Hey! I'm trying to write a registration on the site, I have two selects, initially in one there should be a list of countries, and in the second a list of cities that will appear when choosing a country. Initially, the second select is in the disabled state, where can I get an array of cities, and how to bind it more correctly? Thank you!
Answer the question
In order to leave comments, you need to log in
where can i get an array of citiesInitially, I think, on the Internet, for example here . After that, you can save them either in one big-big JSON, or leave them in the database and get them from there.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question