title: Textarea | val().length not counting "Enter/Line Breaks" in chrome
body: <p>I have a <code>textarea</code> with the attribute <code>maxlength</code> set to <code>350</code> &amp; it works fine, it also counts enter/line break as a character.</p>
  
  <p>I also have to show a error message if user try to type more than or reaches to <code>350</code> character limit for which I am using this code:</p>
  
  <pre><code>$("textarea").keyup(function (e) {
      if($(this).val().length &gt;=350){
          $('.error').show();
      }else{
          $('.error').hide();
      }
  });
  </code></pre>
  
  <p>It works but in chrome it doesn't count enter/line break but maxlength does as a result if a user is breaking text in multiple lines, he do stops typing after 350 character but don't see any message.</p>
  
  <p>Here is a fiddle to play with: <a href="https://jsfiddle.net/udp9oxx4/" rel="noreferrer">https://jsfiddle.net/udp9oxx4/</a></p>
  
  <p>Note this bug only occurs in chrome.</p>