send form if enter pressed
$('form').keypress(function(e) { if (e.which == 13) { // press enter $(this).submit(); } });