Fixing JSON request

This commit is contained in:
Marc 2015-12-24 20:17:39 -05:00
parent f953c1241c
commit 8fb6105d5c

View file

@ -5,7 +5,12 @@ $contactForm.submit(function(e) {
$.ajax({
url: '//formspree.io/c.marcandre@gmail.com',
method: 'POST',
data: $(this).serialize(),
data: {
Sender: $("#sender").val(),
Position: $("#function").val(),
Email: $("#replyto").val(),
Details: $("#details").val()
},
dataType: 'json',
beforeSend: function() {
console.log("Sending.");