Skip to content

The Mother-Mask is a simple and definitive Js library to implement text mask using a pattern.

License

Notifications You must be signed in to change notification settings

dan2dev/mother-mask

Folders and files

NameName
Last commit message
Last commit date
Apr 14, 2018
Jan 27, 2020
Jan 27, 2020
Jan 27, 2020
Jan 27, 2020
Jan 24, 2020
Mar 16, 2018
Jan 27, 2020
Mar 16, 2018
Apr 12, 2018
Mar 16, 2018
Sep 30, 2017
Jul 4, 2018
Apr 26, 2018
Jan 27, 2020
Jan 27, 2020
Apr 26, 2018
Mar 24, 2025

Repository files navigation

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

Working demo!

About

The Mother-Mask is a simple and definitive Js library to implement text mask using a pattern.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published