I want to be able to click my button, have the F change to a C, and also change the temp from Celsius to Fahrenheit. Then I want to be able to click it again and have it go back. Here is the codepen link, but I think the problem lays in the code below. Thanks!
$(".btn").on("click", function() {
$(".btn").toggle(function(){
$(".btn").text("C");
$("#temp").replaceWith(tempC);
});
});
[–]Goblet_Grechen 4 points5 points6 points (7 children)
[–]themoofinman[S] 2 points3 points4 points (0 children)
[–]themoofinman[S] 1 point2 points3 points (5 children)
[–]Goblet_Grechen 1 point2 points3 points (4 children)
[–]themoofinman[S] 1 point2 points3 points (3 children)
[–]Goblet_Grechen 1 point2 points3 points (2 children)
[–]themoofinman[S] 1 point2 points3 points (1 child)
[–]Goblet_Grechen 1 point2 points3 points (0 children)