Skip to content

Commit

Permalink
Merge pull request #758 from akash70629/msg-name-input
Browse files Browse the repository at this point in the history
FIX : Restrict "Name" Field to Alphabetical Letters
  • Loading branch information
PriyaGhosal authored Oct 15, 2024
2 parents 7f0f99c + 7d5fc91 commit f31ff2b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,9 @@ <h3>About BuddyTrail</h3>
<h3>Send Us a Message</h3>
<form id="contactForm">
<div class="form-group">
<input type="text" id="name" class="form-control" placeholder="Your Name" required>
<input type="text" id="name" class="form-control" placeholder="Your Name" required required pattern="[a-zA-Z ]+"
oninvalid="this.setCustomValidity('Numbers and Symbols are not allowed')"
oninput="this.setCustomValidity('')">
</div>
<div class="form-group">
<input type="email" id="email" class="form-control" placeholder="Your Email" required>
Expand Down

0 comments on commit f31ff2b

Please sign in to comment.