I\'m having some trouble creating a complete application using an API, specifically the Forecast.io weather api. For simplicity, I\'ve put my JS directly in my HTML page. Fo
The main mistake you made is not including jQuery :-) The next one is that on a jQuery object you need to use the html() function instead of the JavaScript native innerHTML property.
If you use console.log(data) you can see all the properties of the returned object, so you can reference it correctly like data.currently.temperature
Here's the weather: