Created
February 22, 2017 22:32
-
-
Save Astargh/49ea319c3a433e7e0752375cc483c4c9 to your computer and use it in GitHub Desktop.
E-mail Ajax Send
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//E-mail Ajax Send | |
$("form").submit(function() { //Change | |
var th = $(this); | |
$.ajax({ | |
type: "POST", | |
url: "mail.php", //Change | |
data: th.serialize() | |
}).done(function() { | |
setTimeout(function() { | |
// Done Functions | |
th.trigger("reset"); | |
}, 500); | |
setTimeout(function() { | |
document.location.href='http://gepcru.ru/thank-you.html'; | |
}, 800); | |
}); | |
return false; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment