Today is the oficial release of the version 0.4.3 of my jQuery Mask Plugin. Since I have never written about it before on this blog, I’ll teach you guys how to use it and some other cool features about it.
Downloading the code
( ͡ ͡° ͜ ʖ ͡ ͡°)
\╭☞ \╭☞ Follow me on Twitter!
The jQuery Mask Plugin syntax is pretty simple. First, you input your selector, followed by the .mask and then as a parameters you have to put the mask that you want the plugin to apply on the form field.
The user can type a sequence of three alpha numeric characters, followed by space, three numeric characters, a slash, one string character, other number character and finally one string character, cool isn’t it?
Again, you can define the mask as you wish and the data type of each digit of the mask as well.
- Lightweight (~2kb minified, ~1kb gziped).
- Masks on any HTML element!
- data-mask attribute support.
- String/Numeric/Alpha/Mixed masks.
- Reverse mask support for masks on numeric fields.
- Optional digits.
- Digits by range.
- Automatic maxlength.
- Advanced mask initialization.
- On-the-fly mask change.
- Mask removal.
- Compatibility with Zepto.js
More about jQuery Mask Plugin
Any problems, please, let me know.
148 thoughts on “Masks With jQuery Mask Plugin”
You need to include the jQuery library along with the jQuery Input Mask plugin to be able to use it in your webpage. You can get it in your local or get it from CDN.
Hi, am using your plugin on my website to mask out phone number inputs but the prefix and suffix options are missing on it. Please, i would like to know how long it can take for you to add these important features on it.
How would I mask just for the years 1950 to 2020? Thank you