Posts

Showing posts with the label disable

JQuery html form disable form submit on press enter

Just use below code and replace your id with "rjform" jQuery('#rjform').on('keyup keypress', function(e) {   var code = e.keyCode || e.which;   if (code == 13) {     e.preventDefault();     return false;   } });