$.ajax({
url: "jobs/php/job_single.php?type=500",
type: "POST",
data: new FormData(document.getElementById("form")),
contentType: false,
processData:false,
cache: false,
success: function(dataResult){
console.log(dataResult);
if(dataResult == 999){
alert("Incomplete Information Provided");
}
else{
if(dataResult == 1){
alert("Job Application successful");
location.reload();
}
else if(dataResult == 0){
alert("Error applying for job, Please try again");
}
}
}
});