I am trying to get some statements executed in a case a form box is empty and I tried comparing the value (theform.thebox.value) to null, NaN, undefined but it doesn't seem to work. Anybody know how to do it?
Code:
if (theform.thebox.value == null)
alert("You got it!");
else
alert(theform.thebox.value);