I have a simple ajax:
$.ajax({
url:"php/exemplo.php",
type:"POST",
data:new FormData(this),
contentType:false,
cache:false,
processData:false,
success: function(resposta){
if(resposta == '<nome>'){
alert('deu certo');
}
}});
In PHP I give echo "<nome>";
and this <nome>
arrives in ajax right (I checked with an alert) ... but if it does not understand that it is <nome>
, it does not fall into if ...
What could be the error?