Coronavirus: What we're doing to prioritize your health and safety. Learn More »
$('#leadGenForm').validate({ rules: { fname: 'required', lname: 'required', email: { required: true, email: true, }, phone: 'required', store: 'required', interest: 'required', }, messages: { fname: 'First Name Please', lname: 'Last Name Please', email: 'Enter a valid email', phone: 'Phone is required', store: 'This field is required', interest: 'Please tell us what you are interested in', }, submitHandler: function(form) { $.ajax({ url:'https://hooks.zapier.com/hooks/catch/1848869/odz9g25/', type:'post', data:$('#leadGenForm').serialize(), success:function(){ console.log("poplead sent"); $('#myModal3').modal('hide'); localStorage.setItem('leadGenDone', 'yes'); window.location.href="/thankyou"; } }); } });