I have a input type and using input data mask pattern '(999) 999 - 9999'. This mask is not allowed mobile number prefix extension code (Ex : +1,+44) or more then 10 digits.
<input type="text" data-mask="(999) 999-9999"/>
I need to accept both the mobile number with extension and without extension code.
If user enter without extension code UI will show : user Input : 9876543210 mask will show : (987) 654-3210
If user enter with extension code UI Should show : User Input : +19876543210 , 1987654321 , +449876543210, 449876543210 Expected mask will show : +1 (987) 654-3210, +1 (987) 654-3210, +44 (987) 654-3210, +44 (987) 654-3210