157
rated 0 times
[
161]
[
4]
/ answers: 1 / hits: 92491
/ 15 Years ago, fri, march 19, 2010, 12:00:00
How do I check if a textarea contains nothing?
I tried with this code:
if(document.getElementById("field").value ==null)
{
alert("debug");
document.getElementById("field").style.display ="none";
}
But it doesn't do what I expect.
I expect that it should appear a messagebox "debug" and that the textarea is not shown.
How can I fix that issue?
More From » jquery