I have this code:
HTML:
<td id="myid">something</td>
JavaScript:
var test = $("#myid").html();
console.log(test);
if(test == "something"){
alert("Great!");
}
my problem here is that in the console the word something appears but when it is on the condition they do not match, maybe because the .html value retrieved is not a string. So I want to know how do I convert it to string?