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

Single digit months and days #729

Open manattweb opened 4 years ago

manattweb commented 4 years ago

Have you take a look into our docs? Y

https://igorescobar.github.io/jQuery-Mask-Plugin/

Make sure your read this before opening a new issue: Done

https://github.com/igorescobar/jQuery-Mask-Plugin#problems-or-questions

Device

Mac

Browser (and version)?

Chrome-latest

Functional jsfiddle exemplifying your problem:

You can use this one as exemple: http://jsfiddle.net/igorescobar/6pco4om7/ This one works...

Describe de problem depth:

Using the date mask (mask('00/00/0000')) - there's no allowance for someone to enter a single digit month or day. Is there a method to allow both single and double-digit months and days?

Is this plugin helping you out? Buy me a beer and cheers! :beer:

:bowtie: https://www.paypal.me/igorcescobar