Skip to content
Allows the creation of input masks for currency amounts
Find file
Latest commit d8102d6 Oct 30, 2014 @techarch Refactored setNumber to address several issues
Decomposed the setNumber into easier to understand smaller functions.
Added logging.
Fixed issues with masking decimal numbers in IE and FireFox.



 Adapted from original work from Dan Switzer (
 Original source
 Enhanced by Philippe Monnet ( in 2008-2011
 Last revision: 2011-03-31
 Note: this library does not depend on any other library.

 Usage examples:
		var price = document.getElementById("price");
		var price_mask = new Mask("$#,###", "number");

Something went wrong with that request. Please try again.