Skip to content

Commit

Permalink
fix newsletter input
Browse files Browse the repository at this point in the history
  • Loading branch information
akash70629 committed Oct 13, 2024
1 parent 2c85bf4 commit 6236a81
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 @@ -5552,7 +5552,8 @@ <h1>Subscribe to Our Newsletter</h1>
<p>Stay updated with our latest news and offers</p>

<form id="newsform" onsubmit="return showSuccessMessage();">
<input type="text" id="name" placeholder="Your Name" required>
<input type="text" id="name" placeholder="Your Name" required required pattern="[a-zA-Z ]+" oninvalid="this.setCustomValidity('Numbers and Symbols are not allowed')"
oninput="this.setCustomValidity('')">
<input type="email" id="email" placeholder="Your Email Address" required>
<input type="submit" value="Subscribe" name="subscribe" class="subscribe" id="subs">
</form>
Expand Down

0 comments on commit 6236a81

Please sign in to comment.