Can't fetch weather app json

Can't fetch weather app json
0.0 0

#1

I am trying to put weather app json in ID=test3 but it doesn’t do anything. I need guidance to solve this problem.


#2

Not sure what you mean by trying to put weather app json in ID=test3. When I look at your JavaScript, it looks like you want to display the response (an object) in the div with id=“test3”. That really is not going to work. You need to reference the response object’s various properties to display them in the div with id=“test3”. I first suggest putting console.log(response); inside the $.get callback function and study the object structure so you know how to reference the nested properties’ values.