Skip to content
Snippets Groups Projects

Master

Merged Felix Chadwick-Smith requested to merge master into main
2 files
+ 1
3
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 0
2
@@ -112,14 +112,12 @@
@@ -112,14 +112,12 @@
.then(response => response.json())
.then(response => response.json())
.then(data => {
.then(data => {
console.log('Success:', data);
console.log('Success:', data);
// Optionally, you can add code to show a success message to the user
// Reset the form
// Reset the form
document.getElementById('contactForm').reset();
document.getElementById('contactForm').reset();
})
})
.catch((error) => {
.catch((error) => {
console.error('Error:', error);
console.error('Error:', error);
// Optionally, you can add code to show an error message to the user
});
});
});
});
</script>
</script>
Loading