Good afternoon Hi, I have an Ajax application that I am trying to use. I have a PHP file which I am trying to use. In the case I would like to update only the div and nothing else is just to run the foreach again that will get the data of the session that now has one more item so that I am not getting anyone can help?
$(document).ready(function() {
$('.incluir_item').submit(function() {
var dados = $(this).serialize();
$.ajax({
type: "POST",
url: "calibracao_incluir_itens.php",
data: dados,
beforeSend: function() {
$('#incluir-item').fadeOut('fast').modal('toggle');
$('<div class="ajaxModal"><div class="ajaxModal-preload"><p>Incluindo cliente aguarde!</p></div></div>').insertAfter('body');
$('.ajaxModal').fadeIn('fast');
},
success: function(data) {
ajaxModal_Close();
$('#tabela_calibracaoes').html('#tabela_calibracaoes');
}
});
return false;
});
});
Thank you in advance.