for some reason my $.ajax() is posting but not providing a success message which is rather strange because i am using the same code from another application just with different values
$("#submit").click(function(e)
e.preventDefault();
var email = $("#email_address").val();
var url = "<?=base_url()?>" + "account/validate_registration";
$.ajax({
type:"POST",
url:url,
data:{"email_address":email},
success: function(res,status){
alert(res);
}
});
});
Sometimes chrome developer console displays the response of the php file which is
print_r($_POST);
I cant understand how it works in one application and not in this one