Using jQuery Mask Plugin with Zepto.js
What is Zepto.js
Basically, you can switch from jQuery to Zepto.js if it’s too heavy or if it’s too much for your current needs. If you need something more lightweight that allows you to keep your code compatible with your old jQuery’s code, Zepto.js is a match for you.
– Zepto.js Official Web Site
( ͡ ͡° ͜ ʖ ͡ ͡°)
\╭☞ \╭☞ Follow me on Twitter!
Since version 0.9.0 all you have to do is:
1 – Load zepto.js between your head TAG (or where ever you want to put it if you know what you’re doing):
Zepto’s basic implementation of
data()only stores strings. To store arbitrary objects the optional “data” module from custom build of Zepto was included.
All you need to do now is take a look into jQuery Mask Plugin Documentation to learn a little about jQuery Mask Plugin’s API and you’re ready to go!
Did it help you? Support jQuery Mask Plugin!