Good afternoon, I'm trying to get the answer from my ajax request, but I have not been able to do so. I have this code that works perfectly to send but I do not receive the answer and I would like to have that answer in an alert.
Here the ajax petition
var url = "enviar.php";
$.ajax({
type: "POST",
url: url,
data:{mesa:mesa,item:item,precio:precio},
success: function(data)
{
$("#text").html(data);
}
});
return false;
});
});
</script>
Here is a fragment of my php
echo 'Added';