Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

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
3+8 =