How to check if a Textarea is empty in Javascript or Jquery?
- by streetparade
How do i check if a textarea contains nothing?
I tryed with this code
if(document.getElementById("field").value ==null)
{
alert("debug");
document.getElementById("field").style.display ="none";
}
But it doesnt 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?