@@ -70,8 +70,13 @@
document.getElementById("mySidebar").style.display = "none";
}
-$(window).load(function() {
-$('form').children('input:not(#submit)').val('')
+function submitForm() {
+ // Get the first form with the name
+ // Hopefully there is only one, but there are more, select the correct index
+ var frm = document.getElementsByName('contact-form')[0];
+ frm.submit(); // Submit
+ frm.reset(); // Reset
+ return false; // Prevent page refresh
}