Contact form script wip

This commit is contained in:
Hazem Krimi
2023-11-08 18:10:39 +01:00
parent a517624330
commit 770beea258
3 changed files with 24 additions and 5 deletions
+4
View File
@@ -41,3 +41,7 @@ form input,
form textarea {
width: 100%;
}
form button {
cursor: pointer;
}
+4
View File
@@ -0,0 +1,4 @@
document.querySelector('form').addEventListener('submit', (event) => {
event.preventDefault();
console.log(new FormData(event.target));
});