Hi, there,
I came up with this question. I would like to make a conditional statement. If the text content in an HTML element is equal to the celsius degree sign. How should I realize this?
var unit = document.querySelector("#unit");
if (unit.innerHTML == โ℉โ){
my statement;}
This does not seem to work.
Anyone out there has any idea?
Thank you.