HTML5 now allows you to check input attributes of the user using regular expressions without the use of any javascript using "pattern" attribute -
A simple example for email check -
<input type="email" pattern="[^ @]*@[^ @]*" value="">
No comments:
Post a Comment