Skip to main content
/*Form Submission*/ /* First year online toolkit download and add to Mailchimp list */ $("#lead-gen-toolkit").validate({ ignore: ".ignore", errorElement: "span", errorPlacement: function(error, element) { error.insertBefore( element.parent('.input-group, .checkbox, .radio-group') ); }, errorLabelContainer: "#form-error", submitHandler: function submitForm() { $.ajax({ url: 'https://news.athabascau.ca/mailchimp/highschool.php', crossDomain: true, type: 'GET', dataType: 'html', data: $("#lead-gen-toolkit").serialize(), success: function (response) { $("#lead-gen-toolkit").fadeOut("slow", function () { $("#thank-you").fadeIn("fast"); }); window.location.href = 'https://cdn.athabascau.ca/toolkit/ResourceToolKit.pdf'; }, error: function (e) { console.log(e); } }); return false; } });