title: Textarea Empty check
body: <p>HTML</p>
  
  <pre><code>&lt;form name="myForm" id="myForm" onsubmit="return validate();" action="&lt;?php echo $_SERVER['PHP_SELF']?&gt;"&gt;
  &lt;input type="text" name="name" id="name"&gt;
  &lt;textarea name="details" id="details"&gt;&lt;/textarea&gt;
  &lt;input type="submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Javascript</p>
  
  <pre><code>function validate()
  {
           if(document.getElementById('details').value == '') 
           {      
          alert("Please Provide Details!");
                document.getElementById('details').focus();
          return false;       
          }
           else if(document.getElementById('name').value == '')
           {      
          alert("Please Provide Name!");
                 document.getElementById('name').focus();
          return false;       
          }
           else
             return true;
  }
  </code></pre>
  
  <p>OR  </p>
  
  <pre><code>function validate()
      {
               if(document.myForm.details.value == '') 
               {      
              alert("Please Provide Details!");
                document.myForm.details.focus();
              return false;       
              }
               else if(document.myForm.name.value == '')
               {      
              alert("Please Provide Name!");
                document.myForm.name.focus();
              return false;       
              }
               else
                 return true;
      }
  </code></pre>
  
  <p>I have seen the codes from previous Stack Overflow but as I am using these and it is not working. Will anyone help to solve check empty Value on Textarea using Javascript but not jquery.</p>
  
  <p>The Reference I have used
  <a href="https://stackoverflow.com/questions/2090869/how-to-check-the-textarea-content-is-blank-using-javascript">how to check the textarea content is blank using javascript?</a>
  And
  <a href="https://stackoverflow.com/questions/2476382/how-to-check-if-a-textarea-is-empty-in-javascript-or-jquery">How to check if a Textarea is empty in Javascript or Jquery?</a></p>