Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery enter submit

$('.input').keypress(function (e) {
  if (e.which == 13) {
    $('form#login').submit();
    return false;    //<---- Add this line
  }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #enter #submit
ADD COMMENT
Topic
Name
9+3 =