Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Disable Keypress
- jQuery(document).on( 'keypress', '.gform_wrapper', function (e) {
- var code = e.keyCode || e.which;
- if ( code == 13 && ! jQuery( e.target ).is( 'textarea,input[type="submit"],input[type="button"]' ) ) {
- e.preventDefault();
- return false;
- }
- } );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement