Answers for "jquery how to fix enter on input submit form"

0

jquery disable enter key submit

$(document).on('keyup keypress', 'input', function(e) {
  if(e.which == 13) {
    e.preventDefault();
    return false;
  }
});
Posted by: Guest on April-30-2020

Code answers related to "jquery how to fix enter on input submit form"

Code answers related to "Javascript"

Browse Popular Code Answers by Language