Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bulbul84/c51501ad60bd3089718e607422a29b10 to your computer and use it in GitHub Desktop.
Save bulbul84/c51501ad60bd3089718e607422a29b10 to your computer and use it in GitHub Desktop.
How to use pattern for validated phone number or validated input fields
<input type="text" pattern="[0-9]{9,12}" value="" placeholder="Type your phone number" required/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment