Form disappears after submit, anyone know how to tweek PHP/Javascript functions?

Dan Marsico

New member
I'm new to PHP and this is the basic function that I want, but only I don't want the form to disappear after it is submitted. Does anyone know how to tweek this correctly?


$("#btnsend").click(function() {

$.ajax({
type: "POST",
url: "example.php?act=contact",
data: { fullname: $('input[name=full_name]').val() },
success: function() {
$('#contact-form').hide();
$('#contact-form').html("<p>thanks!</p>")
.fadeIn(1500, function() {$('#contact-form').append("");});
}

});

return false;
});
});
 
Back
Top