I’m having trouble with toggling the two different temperature metrics. I’ve had a look through the forum, but cant seem to find anything relevant to my issue.
Toggling only seems to work on the first click, after that, I get no response. Can anyone help me resolve this? Codepen is below.
To get it to work with the other cities, is it just a case of putting the code in a function and calling it within the scope of each relevant city?
Apologies for the overall quality of the code, I’m going to try and clean it up and make it leaner once I’ve got the app working.
Thanks for your help,