showing results for - "deactivate enter key button"
Paula
01 Nov 2020
1/**
2 * Disable the enter key from submitting the form for all forms all fields
3 */
4<script type="text/javascript">
5    jQuery(function($){
6        $("form").keypress(function(e) {
7          //Enter key
8          if (e.which == 13) {
9            return false;
10          }
11        });        
12	});
13</script>
14
15
Julia
29 Nov 2018
1/**
2 * Disable the enter key from submitting the form for all forms all fields
3 */
4<script type="text/javascript">
5    jQuery(function($){
6        $("form").keypress(function(e) {
7          //Enter key
8          if (e.which == 13) {
9            return false;
10          }
11        });        
12	});
13</script>
14