I have this JavaScript code:
if ( data == 'error_getting_solution_comments' )
{
alert ("test");
}
And for some reason, the if statement does not match up with the string even if the data string has the same value.
Any idea why this might happen?
Thanks!
What you’re saying isn’t possible unless you’re forgetting that JS is a case sensitive language. For example:
If case isn’t the issue, then the value of
datadoesn’t equalerror_getting_solution_comments.