Skip to main content
/*Web feedback form*/ $("#request_course_materials").validate({ errorElement: "span", errorPlacement: function (error, element) { error.insertBefore(element.parent('.input-group, .checkbox, .radio-group')); }, errorLabelContainer: "#form-error", submitHandler: function submitForm() { $.ajax({ type: 'POST', url: 'https://library.dev.athabascau.cloud/action/requestmaterial.php', dataType: 'html', data: $("#request_course_materials").serialize(), success: function (response) { $("form").fadeOut("slow", function () { $("#thank-you").fadeIn("fast"); }); }, error: function (exception) { console.log(exception); } }); return false; }, });