Skip to main content
/*Load Content*/ $("#au-form").validate({ errorElement: "span", errorPlacement: function (error, element) { error.insertBefore(element.parent('.input-group, .checkbox, .radio-group')); }, errorLabelContainer: "#form-error", submitHandler: function submitForm() { $("#course").val($("#course").val().replace(/\s/g,"")); $.ajax({ type: 'POST', url: 'https://www.athabascau.ca/scripts/university-relations/mainsite/contact/coordinators.php', dataType: 'html', data: $("#au-form").serialize(), success: function (response) { $("#coordinators-content").html(response); }, error: function (exception) { console.log(exception); } }); return false; }, }); $("#course").on("keydown", function (e) { return e.which !== 32; });