1.4.2 • Published 5 years ago
mother-mask v1.4.2
mother-mask
The Mother-Mask is a simple and definitive Js library to implement text mask using a pattern.
How to Install
$ npm install mother-mask --save
How to Use
// get the input element
// vanilla javascript
var phoneInputElement = document.getElementById("myphoneinput");
// Jquery
var phoneInputElement = $("#myphoneinput")[0];
// bind the element with the mask
MotherMask.bind(phoneInputElement, "999.999.999-99");
// create dynamic mask
MotherMask.bind(phoneInputElement, ["(99) 9999-9999", "(99) 99999-9999"]);
Simple Working demo
1.4.2
5 years ago
1.4.1
5 years ago
1.3.5
5 years ago
1.4.0
5 years ago
1.3.6
7 years ago
1.3.4
7 years ago
1.3.3
7 years ago
1.3.2
7 years ago
1.3.1
7 years ago
1.3.0
7 years ago
1.2.9
7 years ago
1.2.8
7 years ago
1.2.7
7 years ago
1.2.6
7 years ago
1.2.5
7 years ago
1.2.4
7 years ago
1.2.3
7 years ago
1.2.2
7 years ago
1.2.1
7 years ago
1.2.0
7 years ago
1.0.3
8 years ago
1.0.2
8 years ago
1.0.0
8 years ago