Answers for "deactivate enter key button"

0

deactivate enter key button

/**
 * Disable the enter key from submitting the form for all forms all fields
 */
<script type="text/javascript">
    jQuery(function($){
        $("form").keypress(function(e) {
          //Enter key
          if (e.which == 13) {
            return false;
          }
        });        
	});
</script>
Posted by: Guest on September-03-2021
0

deactivate enter key button

/**
 * Disable the enter key from submitting the form for all forms all fields
 */
<script type="text/javascript">
    jQuery(function($){
        $("form").keypress(function(e) {
          //Enter key
          if (e.which == 13) {
            return false;
          }
        });        
	});
</script>
Posted by: Guest on September-03-2021

Browse Popular Code Answers by Language