I am using ajax call in jquery to handle some database operations, in ajax code I have a alert on error property, which gives my error message, but I want to know what the error was?
here is my ajax code
$.ajax(
{
type: "POST",
url: "server/assign_gifts_get_usr_details.php",
data: "",
success: function(xml)
{
alert(xml);
},
error: function()
{
alert("Error, Please try again");
}
});
this alert is popping up, alert("Error, Please try again");
but I want to know the error.