/* REVIEW A CLAMP RECEIVE A CLAMP */ /* --- */ /* Disable Gravity Form submission without valid coupon code */ .gform_wrapper input[type="submit"].coupon-code-disabled{ opacity: 0; color: #fff !important; background: #000 !important; pointer-events: none; } .gform_wrapper #gf_coupon_button.coupon-code-disabled{ opacity: 0.5; pointer-events: none; }

Rotary Tools and Bits.

Pay meticulous attention to every detail using Pony Jorgensen’s rotary tool bits. Our accessory kits are ideal for new and experienced rotary tool users and are perfect for intricate woodworking, such as cutting, sanding, polishing, grinding, and more.

/* REVIEW A CLAMP RECEIVE A CLAMP */ /* --- */ /* Disable Gravity Form submission without valid coupon code */ (function($){ $(function(){ // Elements var couponFormElement = 'form#gform_3'; var couponCodeField = '.gfield#field_3_3'; var couponCodeInput = '.gfield #gf_coupon_code_3'; var couponCodeInputValues = '.gfield #gf_coupon_codes_3'; var couponCodeValidationMessage = '.gfield #validation_message_3_3'; // Promo Code Form var promoForm = $(couponFormElement); // Check form if( promoForm[0] ){ // Check promo code is applied var promoCodeInterval = setInterval(function(){ // NO COUPON CODE if( $(couponCodeInputValues).val() === '' ){ // Submit Button $(couponFormElement + ' input[type="submit"]').addClass('coupon-code-disabled'); // Coupon Code Button $('#gf_coupon_button').removeClass('coupon-code-disabled'); } // HAS COUPON CODE if( $(couponCodeInputValues).val() !== '' ){ // Submit Button $(couponFormElement + ' input[type="submit"]').removeClass('coupon-code-disabled'); // Field Errors $(couponCodeField).removeClass('gfield_error'); // Display Coupon Code $(couponCodeInput).val( $(couponCodeInputValues).val() ); // Validation Message $(couponCodeValidationMessage).remove(); // Coupon Code Button $('#gf_coupon_button').addClass('coupon-code-disabled'); } }, 500 ); } }); }(jQuery));