Register for this class
UA Card Number (include two zeros at the front of your card#)*
Last Name (lowercase)*
function class_registration(){
//var login_type = jQuery(“select[name=login-type]”).val();
var login_type = “ua-card”;
var card_number = jQuery(“input[name=card_number]”).val();
var ua_password = jQuery(“input[name=ua_password]”).val();
var id_class = “”;
if(login_type==”” || card_number==”” || ua_password==””){
alert(“Please fill out all required fields before registering!”);
}
else{
jQuery.ajax({
type: “POST”,
url: “/wp-content/themes/ae-child-theme/ajax.php”,
data: {action:”class_registration”, login_type:login_type, card_number:card_number, ua_password:ua_password, id_class:id_class},
success: function(data){
if(data === “1”){
alert(“Thank you – you have successfully registered for .”);
jQuery(“input[name=card_number]”).val(“”);
jQuery(“input[name=ua_password]”).val(“”);
}
else{
alert(“An error occurred – please make sure you are using your UA card # and password.nnIf problems persist, please contact training director Eric Smith at 515-244-1346.”);
}
}
});
}
}