//per form disabling <form ... onkeydown="return event.key != 'Enter';"> //or with jquery <script> $(document).on("keydown", "form", function(event) { return event.key != "Enter"; }); </script>