Hello guys,
Im working in a process with a form which have:
- input text for Cities
- input text for States
and i want to change for a dropdown list for each one, im having a problem with JSON, i cant show the JSON data correctly in displayed key.
i have this file: https://gist.githubusercontent.com/lucashort7/313bec7d4a8b82472ac19993681d71c2/raw/36fc21d9e2fc45c078e0e0e07cce3c81965db8f9/estados-cidades.json
i want to show all states (“estados”) in one drop down, and in the other all cities (“cidades”) based on which state the user choose, like this : estados[states.selected].cidades
i got this so for(all cities in one line:
http://imgur.com/a/gQayO