title: Remove line break from textarea
body: <p>I have a textarea like this:</p>
  
  <p><code>&lt;textarea tabindex="1" maxlength='2000' id="area"&gt;&lt;/textarea&gt;</code></p>
  
  <p>I watch this textarea with jquery:</p>
  
  <pre><code>$("#area").keypress(function (e) {
      if (e.keyCode != 13) return;
      var msg = $("#area").val().replace("\n", "");
      if (!util.isBlank(msg))
      {
          send(msg);
          $("#area").val("");
      }
  });
  </code></pre>
  
  <p>send() submits the message to the server if the return key was pressed and if the message is not blank or only containing line spaces.</p>
  
  <p>The problem: After sending the message, the textarea is not cleared.
  On the first page load, the textarea is empty. Once a message was submitted, there is one blank line in the textarea and I don't know how to get rid of it.</p>