Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

stop form submission on press enter button

$('form [name="disc"]').keydown(function (e) {
    if (e.keyCode == 13) {
        e.preventDefault();
        return false;
    }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #stop #form #submission #press #enter #button
ADD COMMENT
Topic
Name
4+1 =