Identify cities or other subjects

0

Good afternoon, friends. I'm creating a website for a company and I have a small question. can anyone tell me how do I make the site "auto complete" the user's cities? EX: in the state I select that I live in São Paulo, and automatically that of cities, Show me only the cities of São Paulo. If I was not clear enough, forgive me.

    
asked by anonymous 27.03.2017 / 20:11

1 answer

0

You can create a file that only makes a return in a giant array with all the names or directly consult an API

  • City Json to use with the file
  • API with city acronyms
  • For popular the other select make a request with the value of the first input and fill the second with the values returned.

        
    27.03.2017 / 20:22