I have a form. When you hit the enter button. The form is going submit. But now i have a problem. When i hit the enter button in the textarea. Then the form is going submit. But in a textarea, a enter must be a enter.
How can i fix this? This is my code:
form.keypress(function(e) {
if (e.which == enter) {
e.preventDefault();
$(this).find('[type=submit]').click();
}
});