diff --git a/js/form-handling.js b/js/form-handling.js index 8a8bb11..f98c69b 100644 --- a/js/form-handling.js +++ b/js/form-handling.js @@ -8,15 +8,13 @@ $contactForm.submit(function(e) { data: $(this).serialize(), dataType: 'json', beforeSend: function() { - $contactForm.append('
Sending messageā€¦
'); + console.log("Sending."); }, success: function(data) { - $contactForm.find('.alert--loading').hide(); - $contactForm.append('
Message sent!
'); + console.log("Sent."); }, error: function(err) { - $contactForm.find('.alert--loading').hide(); - $contactForm.append('
Ops, there was an error.
'); + console.log("Failed."); } }); }); \ No newline at end of file