mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-01 18:00:26 +00:00
Contact form script wip
This commit is contained in:
@@ -41,3 +41,7 @@ form input,
|
||||
form textarea {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
form button {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
document.querySelector('form').addEventListener('submit', (event) => {
|
||||
event.preventDefault();
|
||||
console.log(new FormData(event.target));
|
||||
});
|
||||
Reference in New Issue
Block a user