How can I make anything change after ajax is sent, the page stay in the same place and not load again?
script
$(function() {
$('.form-carro').submit(function(){
$.ajax({
url:'insert.php',
type: 'post',
data: $('.form-carro').serialize(),
success: function (data) {
$('.recebeDados').html (data);
}
});
return-false
});
});
would you just have to remove success
?