Here is my pen:
Here is what I see in the console:
- The error appears occasionally I don’t know why.
- The code below runs automatically, without the element being clicked.
Hi Ben. I’ve just barely finished this challenge myself, and from what I’ve seen, it’s a security issue. Here’s more information, but the gist of it is that you should try using jsonp instead of json.
Hi, I used Ajax request, and it solved the problem.
I still have a problem with the setTemp function running, even though the click condition was not met.
Hey Ben. I’m not 100% sure but could it be because #degrees is not a button?
It does not have to be a button. You can create click events on any (or almost any) html element.