title: Textarea not submitting on enter
body: <p>I know that this question is probably redundant, but after having looked through almost every related question on stackoverflow, I still haven't been able to make my problem "go away." The problem is this:</p>
  
  <p>On key press of "enter", submit textarea contents instead of creating a new line.</p>
  
  <p>This is what I am working with:<br>
  The jQuery (an answer from a similar question on here):</p>
  
  <pre><code>  $('#message').keypress(function(e){
      var code = (e.keyCode ? e.keyCode : e.which);
      if (code == 13){
        $('#form').submit();
      }
    });
  </code></pre>
  
  <p>The HTML:</p>
  
  <pre><code>&lt;div class="message"&gt;
  &lt;form name="form" class="form" id="form" action="chatsendmesg.php" method="POST"&gt;
  &lt;textarea rows="2" name="message" id="message" class="message" placeholder="RM911 Chat" cols="26"&gt;&lt;/textarea&gt;
  &lt;input id="submit" class="submit" type="submit" value="Send" name="submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Even with this code, the key press of "enter" still creates a new line instead of the submit. What on earth am I not understanding here?? Is it a lack of a <code>preventDefault</code>?</p>
  
  <p>Thanks in advance,
  Tim</p>