Skip to content

Commit

Permalink
Merge pull request #3363 from akash70629/contact-us
Browse files Browse the repository at this point in the history
fix: Validate Contact Us Name Field to Accept Only Letters
  • Loading branch information
sailaja-adapa authored Oct 13, 2024
2 parents 7e64bf4 + fdcf186 commit b12757f
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 @@ -5083,7 +5083,8 @@ <h3 style="text-align: center; color: #A30F17;">GET IN TOUCH</h3>
<div class="contact-container">
<form class="contact-form" id="contactForm" style=" width: 500px;">
<label for="name">Name</label>
<input type="text" id="name" name="name" placeholder="Your Name" required>
<input type="text" id="name" name="name" placeholder="Your Name" required required pattern="[a-zA-Z ]+" oninvalid="this.setCustomValidity('Numbers and Symbols are not allowed')"
oninput="this.setCustomValidity('')">

<label for="email">Email</label>
<input type="email" id="email" name="email" placeholder="[email protected]" required>
Expand Down

0 comments on commit b12757f

Please sign in to comment.