$('.form-submit-css').on("submit", function(e) { if (e.keyCode == 13) { e.preventDefault(); return false; } });Or you can add following code.
$('myform').submit(function() { return false; });
Or this snippet.
$('form').keyup(function(e) {
return e.which !== 13
});
Or this html.
<form onsubmit="return false;">
Should work for you. Have a fun with your coding !
0 comments:
Post a Comment
Ask anything about this Tutorial.