Position of an Object with a specific name within an Array

0

Good afternoon! It's OK? Could you please help me resolve the case in JQuery / XML below?

I make a request for an ex town name. ' Vila Velha - ES ' via JSON to a given XML, and it returns an array of cities 'Vila Valério - ES', 'Vila Velha - ES' and 'Vila Pavão - ES'. I can not simply say that it is the city of position X because the position can be changed in cases of using another city name.

How do I make the return exactly the name of the city I want?

Thank you in advance,

Embrace

    
asked by anonymous 06.12.2017 / 20:00

0 answers