I am trying to check with JQuery if a Div #id has a certain character or not.
Here's the code I'm trying:
if ($("#mydiv").html('0')) { alert'zero character was found'; } The alert is not popping up.
I'm I doing it wrong?
I am trying to check with JQuery if a Div #id has a certain character or not.
Here's the code I'm trying:
if ($("#mydiv").html('0')) { alert'zero character was found'; } The alert is not popping up.
I'm I doing it wrong?