title: On press enter key in textarea prevent line break and remove the text in the textarea
body: <p>I create a textarea and javascript code that removes the text in the textarea on press enter
  my problem is that when press enter it break a line, but I want to prevent the line break.
  this is my code for removing text from textarea on press enter:</p>
  
  <pre><code>if(e.keyCode == 13 &amp;&amp; !e.shiftKey){
  function clear() {
  $("#mytxt :input").each(  function() {
      $(this) .val('');
      });
  }
  }
  &lt;textarea id="mytxt"&gt;&lt;/textarea&gt;
  </code></pre>
  
  <p>so how can I prevent the line break while using my function?</p>
  
  <p>Thanks </p>