jQuery-Mask-Plugin icon indicating copy to clipboard operation
jQuery-Mask-Plugin copied to clipboard

Question on Phone Mask with International numbers

Open Light407 opened this issue 1 year ago • 1 comments

I have a question regarding international numbers.

This library is really good and it works great in MAUI Hybrid which we have found that many libraries fail. So first of all thanks for a great lib!

We are using this to mask phone numbers in typical US formats such as "(###) ###-####" and it works great. The question now is how we can support rare cases when the user wants to enter an international number. Can we somehow detect if a user types a '+' sign and if so simply remove the masking (and if user removes the plus we put back the mask)? We are using this on a regular HTML input field.

Again thank you very much!

Light407 avatar Aug 17 '24 11:08 Light407

Please, type your examples in both formats you desire.

pyetrosafe avatar Oct 28 '24 01:10 pyetrosafe