Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
In contact us section after the user submits the form successfully, they see an alert box with the message "Email sent successfully! but the form is not reset. I have modified the code so that the form will be reset, providing a better user experience.
  • Loading branch information
ananyag309 authored Jun 3, 2024
1 parent 203b3c4 commit d45dd9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -999,6 +999,7 @@ <h4>Reach Out To Us</h4>
return;
}
sendEmail(email);
event.target.reset();
});

function sendEmail(email) {
Expand Down Expand Up @@ -1436,4 +1437,4 @@ <h4>Reach Out To Us</h4>


</div>
<!-- New bubble background end -->
<!-- New bubble background end -->

0 comments on commit d45dd9d

Please sign in to comment.