Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save anova/f034fe90ff9af875d7d7f9bf696673b4 to your computer and use it in GitHub Desktop.
Save anova/f034fe90ff9af875d7d7f9bf696673b4 to your computer and use it in GitHub Desktop.
ignores first zero at phone number for jquery mask plugin
//http://igorescobar.github.io/jQuery-Mask-Plugin/docs.html#callback-examples
$('.phone-mask').mask('(A00) 000 00 00',{ translation: { 'A': { pattern: /[1-9]/, optional: false } } });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment