Created
May 26, 2013 18:23
-
-
Save revnode/5653599 to your computer and use it in GitHub Desktop.
I know you'll fall in love with this feature, no more js or a server side code to check if the user's input is a valid email or url adress, with the pattern attribute you can use regular expressions directly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input type="email" pattern="[^ @]*@[^ @]*" value=""> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment