[Solver] Disable and enable button

Why my getTemp() function doesn’t work? Why n change in my if-control?

Part of the problem is in the following line:

$("#cels").on("click", getTemp());

Do not call the function, just specify the function without ().

$("#cels").on("click", getTemp);

@RandellDawson i tried it, but still doesn’t work.

My suggestion does not completely solve your issue, but it does stop an error you were getting in the console that was causing other issues.

@RandellDawson now i changed my code and my if-control but doesn’t work and i don’t understand why.

Looks like it is working now. Let us know if you have any further questions.

I solved. I remove if-control and just put two new function.