How to change content based on select from another select?

There are 2 select. The country and the city. In 2 files .json has all the city and country.
I depending on the country in the second Selex display only city this country?
June 14th 19 at 19:17
1 answer
June 14th 19 at 19:19
Yuzaem search and wonder how much it is ready:

In short, listen to the change event of one select, when you change take its name, draws from json desired city, iterate through adding options to the second select, pre-banged old.

Find more questions by tags AJAXjQueryPHP