I have <div>
where the return of the function ajax
is returned, but it updates itself, I want to know if it has the function ajax
and instead of updating it to 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)
}
});