Skip to content
Allows the creation of input masks for currency amounts
JavaScript
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.

README

CurrencyMaskJS
============

 Adapted from original work from Dan Switzer (dswitzer@pengoworks.com)
 Original source http:www.pengoworks.com/workshop/js/mask/
 Enhanced by Philippe Monnet (techarch@monnet-usa.com) 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");
		price_mask.attach(price);

		
Something went wrong with that request. Please try again.