Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("form").submit(function() {
- var that = $(this);
- $.ajax({
- type: "POST",
- url: "mail.php",
- data: that.serializeArray()
- }).done(function() {
- alert("Thank you!");
- setTimeout(function() {
- that.trigger("reset");
- }, 1000);
- });
- return false;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement