Thank you so much for helping me @Feldbot, although I don't understand why this worked previously, but not now. As I mentioned in my original message, I completed this challenge a while ago, and at the time, when I submitted my work, everything was working. It was not until I checked on this project a week ago that I noticed the image was no longer displaying.
Also, I ended up using span
instead of div
as it worked for me better. Thank you again @Feldbot
this
. Maybe this is what you were looking for? https://jsfiddle.net/2of5euky/20/
@Feldbot If you wanted to use $, then the following should work as well: $(this)[0]
Maybe someone can chime in and correct me if I'm wrong, but my understanding is that $(this)[0]
== this
. If you try this in the console, you'll see that both give you the same results:
<button id="btn_test" value="hi">TEST</button>
Hello, for my localWeather app, everything works fine when I'm on my pc (I've tested this using both Chrome and Firefox, in both my Host OS and Ubuntu Guest OS in Virtualbox).
However, when I open up chrome on my android phone and visit my localWeather pen in CodePen, the JSON data that I pull from FCC's weather api does not replace the text on the page (i.e. Location
, Temperature
, Forecast
, and Weather Icon
). Can anyone help me understand why?
Also, I am trying to debug this in my android phone. I followed the steps found here, but it did not work as the chrome browser from my laptop did not detect my phone. Anyone know a workaround to this?