title: Textarea does not stop making new line when Enter key is pressed
body: <p>i don't understand why my textarea won't stop making new lines and won't call function when enter is pressed depsite the fact jquery is to do so. With input it's working ok. And yes i still want that Submit button there.</p>
  
  <p>JavaScript</p>
  
  <pre><code>function da(){
  
  $('#com').unbind('keypress').bind('keypress', function(e){
     var code = e.keyCode ? e.keyCode : e.which;
     if(code == 13) // Enter key is pressed
     {  e.preventDefault();
        chat();
     }
  });
  }
  </code></pre>
  
  <p>HTML</p>
  
  <pre><code>&lt;form id='com' method='post'&gt;
  
  
  Mesaj:&lt;br&gt;
  &lt;textarea name='mesaj' rows='7' col='60'&gt;&lt;/textarea&gt;&lt;br/&gt;&lt;br/&gt;
  &lt;input type='submit' value='Trimite mesaj!' onclick='chat()'&gt;
  
  &lt;/form&gt;"
  </code></pre>