jquery how to fix enter on input submit form code example
Example: jquery disable enter key submit
$(document).on('keyup keypress', 'input', function(e) {
if(e.which == 13) {
e.preventDefault();
return false;
}
});
$(document).on('keyup keypress', 'input', function(e) {
if(e.which == 13) {
e.preventDefault();
return false;
}
});