Printed from: www.dainesfinancial.com
Your submission is complete
' ).fadeIn('slow'); } } }); // Equal to static Value $.validator.addMethod("equalStatic", function (value, element, param) { return this.optional(element) || value === param; }, "You must answer the question correctly"); $('#form').validate({ rules: { Name: 'required', Email: { required: true, email: true }, question: { required: true, equalStatic: '24' } }, messages: { Name: 'Name is Required', Email: 'Email Address is Incorrect', } }); document.addEventListener('DOMContentLoaded', () => { const form = document.getElementById('tqcf'); if (!form || typeof formProtection === 'undefined') return; // Create hidden honeypot field const hp = document.createElement('input'); hp.type = 'text'; hp.name = 'honeypot'; hp.className = 'fp-hp sr-only'; hp.tabIndex = -1; hp.autocomplete = 'off'; hp.setAttribute('aria-hidden', 'true'); form.prepend(hp); // Make sure submit button has .fp-submit class const btn = form.querySelector('.contact-form-button'); if (btn) btn.classList.add('fp-submit'); // Initialize protection manually formProtection.protect({ el: form, action: form.dataset.fpAction, hpi: form.querySelectorAll('.fp-hp'), submit: form.querySelectorAll('.fp-submit') }); });