Answers for "form not submitting on press enter"

1

html form not submit on enter

$(document).ready(function() {
  $(window).keydown(function(event){
    if(event.keyCode == 13) {
      event.preventDefault();
      return false;
    }
  });
});
Posted by: Guest on June-12-2020

Code answers related to "form not submitting on press enter"

Browse Popular Code Answers by Language