i have form and one div named "success". when form is submited "success" div has been shown.
i am trying to do that, when form submitted, page slide to "success" div.
my code is.
$.ajax({
type: "POST",
url: "mail.php",
data: dataString,
success: function () {
$('.success').show(1000).delay(5000).fadeOut();
$("#contact-form")[0].reset();
}
});