.on only works the first time?

.on only works the first time?
0

#1

Greetings and thanks for reading!

I’ve proofread and tried to search around but can’t figure out why my .on event handler only works to switch it to 'F and not back to 'C?


#2

In your if-block’s condition, text should be text(), and = should be == or ===.

In the else-block,$('FC') should be $('#FC')