ClassMask: jQuery Input Mask Plugin Examples
A jQuery Plugin that makes it possible to format and validate different data types like email, phone, number, money, zip, date, etc. in any input text field.
Basic Example
The simplest template to get started is the following.
Everything you need to start is:
- Include jQuery and Class Mask App in your HTML code.
- Then add a class of your need.
Another way to do this:
- Include jQuery and Class Mask in your HTML code.
- Then add a jQuery event, call the
classMask
method to change the value.
Or if you prefer:
- Include only Class Mask in your HTML code.
- Then add a listener.
Bonus textarea:
- Include jQuery and Class Mask App in your HTML code.
- Then add a class called
note
in the textarea parent. - Also add a class called
sheet-content
in the wrapper content. - Attribute maxlength required or will not work.