Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Display $.getJSON information Reply To: Display $.getJSON information

#181812
__
Participant

If you’re talking about $(this).text(states[index]);:

states[index] is your json response. Maybe it’s an object…? That would make sense, judging by your description. What does your response look like?

Also, is there a reason you’re putting the response into an array before using it (it would seem that array would only ever have the one item, so I’m not sure what the point is)?