Created
April 26, 2019 14:32
-
-
Save anova/f034fe90ff9af875d7d7f9bf696673b4 to your computer and use it in GitHub Desktop.
ignores first zero at phone number for jquery mask plugin
This file contains 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
//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