I am creating an HTML page which uses jQuery, iFrames and have simple CSS. When I run a jQuery script against a json file from openweathermap.org it overrides the HTML background color set in place, as well as any iframes. Any suggestions?
<style>
body {
background-color: #ff5000;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<div id = "weather"></div>
<script>
$( "weather" ).ready(function(){
$.getJSON("http://api.openweathermap.org/data/2.5/weather?q=Castlebar,ie&appid=44db6a862fba0b067b1930da0d769e98");
document.write('hello');
console.log('works')
});
</script>