igorescobar / jQuery-Mask-Plugin

A jQuery Plugin to make masks on form fields and HTML elements.
http://igorescobar.github.io/jQuery-Mask-Plugin/
Other
4.77k stars 1.42k forks source link

zipcode+4 #708

Open bluebee89 opened 5 years ago

bluebee89 commented 5 years ago

Is there a way to mask a zipcode+4 field so that the "-" is optional?

If mask is set to 00000-9999, and the user types 12345 in the field, the data entered by the user gets cleared.