Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Jquery JavaScript Prevent From Press Enter Key Keyboard

//Use As Function
function stopEnter() {
    $("form").submit(function (e) {
        e.preventDefault();
    });
}
//Use As Regular
$(function () {
    $('form').submit(function (e) {
           e.preventDefault();
    });
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Jquery #JavaScript #Prevent #From #Press #Enter #Key #Keyboard
ADD COMMENT
Topic
Name
9+1 =