0
I have a <div>
where the function return ajax
and returned, however it updates, I want to know if you have how to perform the function ajax
and instead of updating it bring the result leaving the old result, it is possible?
HTML
<div id="id">
</div>
Ajax
$.ajax({
url:'enviar.php',
method:'POST',
data:{nome:nome, texto:texto},
beforeSend: function(){
$("#id").html("...");
}
success:function(data){
$("#id").html(data)
}
});
I could post how your code is so far?
– Randrade
From the page that sends ajax or receives?
– Everton Figueiredo
Probably
$("#id").append(data)
will already solve– abfurlan
Solved another doubt if I put a beforeSend $("#id"). append("...") the 3 points also stays as I do not to stay the 3 points?
– Everton Figueiredo
@abfurlan adds his reply for me to put as answered.
– Everton Figueiredo