I’m using codeigniter framework with ajax and jquery
This my ajax code
$('#email').blur(function(){
var email=$("#email").val();
$.ajax({
url: "http://localhost/paymybill/ajax/email_check",
global: false,
type: "POST",
data: email,
success: function(data) {
alert('working ......');
alert(data);
}
});
});
This my controller code
public function email_check(){
echo "xxxxx";
return;
}
problem is that it don’t alert message in “success:” part of ajax code please help me
( if i will do any error in the controller both the messages are displaying but second message with the error message ) please help me i m new to ajax
1 Answer