Position of an Object with a specific name within an Array

Asked

Viewed 21 times

0

good afternoon! All right? Please help me solve the case in Jquery/XML below?

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

How should I proceed so that the return is exactly the name of the city I want?

Thanks in advance,

Hug

  • Please post the code you have there, so it’s easier for the community to help you. D

  • Do you request a city name to return an array of cities? What data do you send in the search request?

  • Post your code here to make it clearer, please.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.