Fixing JSON request
This commit is contained in:
parent
f953c1241c
commit
8fb6105d5c
1 changed files with 6 additions and 1 deletions
|
@ -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.");
|
||||
|
|
Loading…
Reference in a new issue