$('.input').keypress(function(e) {
if(e.which == 13) {
$('form#login').submit();
e.preventDefault();
// or return false;
}
});
Title:
jQuery - Submit form on Enter
Description:
$('.input').keypress(function(e) { if(e.which == 13) { $('form#login').submit(); e.preventDefault(); // or...
...
Rating:
4