title: How to detect new empty line in textarea with Javascript?
body: <p>I would like to detect a new empty line in a text area and if the user just pressed enter in the text area, without entering any data to return false and echo a message. I have made some research and thought of something like this:</p>
  
  <pre><code>var validatef ....
  var code = (e.keyCode ? e.keyCode : e.which);
  if (validatef == 'a value here' || code == 13) { 
    somevarhere.textcontent = 'Message';
    return false;
  }
  else {....}
  </code></pre>
  
  <p>But it doesn't seem to work.</p>