$.ajax({
type: "POST",
url: "check.php",
data: "checkit=" + $("#checkEmail").val(),
success: function(response){
$("#userCheck").html(response.status);
if(response.status == true){
alert("yay");
}else{
alert("dsfds");
}
}
}, 'json');
someone here suggested doing my ajax returns using json...
here is my php file returning the json..
$data = {success:true};
echo json_encode($data);
im getting undefined for the return. Perhaps someone here could point me to my mistake?