1.4.2 • Published 4 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
4 years ago
1.4.1
4 years ago
1.3.5
4 years ago
1.4.0
4 years ago
1.3.6
6 years ago
1.3.4
6 years ago
1.3.3
6 years ago
1.3.2
6 years ago
1.3.1
6 years ago
1.3.0
6 years ago
1.2.9
6 years ago
1.2.8
6 years ago
1.2.7
6 years ago
1.2.6
6 years ago
1.2.5
6 years ago
1.2.4
6 years ago
1.2.3
6 years ago
1.2.2
6 years ago
1.2.1
6 years ago
1.2.0
6 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.0
7 years ago