Skip to content

Commit

Permalink
add task solution
Browse files Browse the repository at this point in the history
  • Loading branch information
shymdima committed Mar 2, 2025
1 parent 2f693b2 commit 61c4013
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
document.addEventListener("DOMContentLoaded", function () {
const form = document.querySelector(".main__form");


if (form) {
form.addEventListener("submit", function (event) {
event.preventDefault();

});


form.reset();
});
}
});

0 comments on commit 61c4013

Please sign in to comment.