Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery avoid enter submit

$(document).ready(function() {
  $(window).keydown(function(event){
    if(event.keyCode == 13) {
      event.preventDefault();
      return false;
    }
  });
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #avoid #enter #submit
ADD COMMENT
Topic
Name
4+3 =