Home › Forums › JavaScript › Display $.getJSON information › Reply To: Display $.getJSON information
September 5, 2014 at 12:30 pm
#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)?