Skip to content

Commit

Permalink
Add form javascript for netlify submissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedor Paretsky committed Sep 25, 2018
1 parent 16b22ff commit d4b0112
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,13 @@ closeBtn.forEach(function (element, index) {
e.preventDefault();
card.classList.remove('active');
});
});

$(".profile-card-form").submit(function (e) {
e.preventDefault();

var $form = $(this);
$.post($form.attr("action"), $form.serialize()).then(function () {
alert("Thank you!");
});
});

0 comments on commit d4b0112

Please sign in to comment.