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:

On key press of "enter", submit textarea contents instead of creating a new line.

This is what I am working with:  

The jQuery (an answer from a similar question on here):

```
  $('#message').keypress(function(e){
    var code = (e.keyCode ? e.keyCode : e.which);
    if (code == 13){
      $('#form').submit();
    }
  });

```

The HTML:

```
<div class="message">
<form name="form" class="form" id="form" action="chatsendmesg.php" method="POST">
<textarea rows="2" name="message" id="message" class="message" placeholder="RM911 Chat" cols="26"></textarea>
<input id="submit" class="submit" type="submit" value="Send" name="submit">
</form>

```

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 `preventDefault`?

Thanks in advance,
Tim