Open
Description
This is the mask I created for an office phone number.
$('#phone-office').mask("(000) 000-0000 9999", { clearIfNotMatch: true });
See on Fiddle
The last four digits are the phone extension and have to be optional. If there is no extension, the mask should remains the value but it clears it. The mask keep the value only if I add a space at the end.
Typed : 5141234567
Should be : (514) 123-4567
Is this the normal behavior?