title: Get value from text area
body: <h1>How to get value from the textarea field when it's not equal "".</h1>
  
  <p>I tried this code, but when I enter text into textarea the alert() isn't works.
  How to fix it?</p>
  
  <pre><code>&lt;textarea name="textarea" placeholder="Enter the text..."&gt;&lt;/textarea&gt;
  
  $(document).ready(function () {
      if ($("textarea").value !== "") {
          alert($("textarea").value);
      }
  
  });
  </code></pre>