Hello, good morning! I am a beginner in the field and would like (if possible) help in resolving an issue.
The user will have a field to select the cities, when selecting, the system will capture the chosen city and will query a database to associate with a certain ID.
It turns out that when it selects one of the city options today, the system lists all possible cities and all other states.
I would like it to go into the array, do a validation of UF == es and then present only the chosen city with the validated UF (refine the options).