So internet explorer does it again. I currently have a validation.php
file where values in a text box are sent for validation. The text-box value is read and then a result is given to say if this is valid or not. This works perfectly on any other browser but IE. The ajax request specifically doesn't work. Any help would be appreciated. The script below is in charge of taking the data from the input-box and sending the request via AJAX.
$(document).ready(function () {
$("#email").blur(function () {
var username = $(this).val();
if (username == '') {
$("#availability").html("Empty Input");
}
else{
$.ajax({
url: "validation.php?uname="+username
}).done(function( data ) {
if (data.includes("result-from-validation")){
//DO SOMETHING
}
else {
// DISPLAY ERROR
}
});
}
});
});