I made this ajax here, PS: the data arrives until the file data.php
$.ajax({
type: 'post',
data: $( this ).serialize(),
dataType: 'json',
url:'simulacao/dados.php',
success: function(data){
alert(data);
var objeto = data;
$('#resposta').append(data.total_direta);;
}
});
However, I can not show the values on the screen ... The result of json is this
{"total_direta":"21.450,00","total_indireta":"0,00","total_geral":"47.500,00"}
My question is, how do I show this, there is a div called id="response" but it does not get anything ...