Skip to content

Commit

Permalink
Update index.html #1002
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 was not reset. I have enhance 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 cccd8b1
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 cccd8b1

Please sign in to comment.