Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jmurgolo committed Mar 2, 2024
2 parents 5d1a5a7 + f5722d8 commit b384199
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pages/teamdetails.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h1> Team Details v1</h1>
</header>
<br>

<form>
<form id="teaminfoform">
<div class="team-details-container">
<div class="inner-container">
<!-- <form id="dataForm" class="teaminfo"> -->
Expand Down
10 changes: 8 additions & 2 deletions pages/teamdetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ document.addEventListener('DOMContentLoaded', async () => {
}
});

form.onsubmit = async (event) => {
alert("submit button pressed");
document.getElementById("teaminfoform").onsubmit = () => {



alert("Form information successfully submitted.");
// why does it go to a new page (new query parameters) after pressing the submit button?
//https://www.w3schools.com/tags/att_form_target.asp
//https://www.w3schools.com/tags/att_form_action.asp
}

0 comments on commit b384199

Please sign in to comment.