Disable Enter Key using jQuery
Disable Enter Key – Jquery

People dont want to submit forms when typing enter keys. So I am sharing a simple jquery code to disable enter key using JQuery while typing in forms.  Those who want to disable enter key in their form to prevent form submission, they can use this code

Jquery Code to disable enter key using jQuery

$("#formname").keypress(function(e) {
  if (e.which == 13) {
    return false;
  }
});

You may also like – how to protect your website content using jQuery

Popular Posts from jQuery

Please don’t forget to share and subscribe to latest updates of the blog. Also any comments and feedback are all welcome!

Thanks!

Related Posts