A flexible html input masking library built on jQuery
JavaScript HTML CSS
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
browserTest.html Upgrade to jQuery 1.6.2 Sep 1, 2011
jquery-1.6.2.js Upgrade to jQuery 1.6.2 Sep 1, 2011
license.txt Apply MIT license and prepare for github Mar 12, 2011



A flexible html input masking library built on jQuery. Can handle not just simple masks like phone numbers and SSN, but comma separated numbers and even dates.

Project Status: Stable Inactive

This code has been in production use for a number of years now. There are currently no plans to enhance it. However, bugs will be addressed.

Installation and Use

Download the jquery.rangerMask.js file from the master branch and include in your scripts. This is dependent on jQuery and was developed against version 1.6.2, but later versions should be compatible. Check out demo.html for examples of how to use it. Define new masks with RangerMask.define("...") or use one of the standard masks already defined on the RangerMask object (search jquery.rangerMask.js for "Define standard masks" to see the full list). Apply masks to inputs in jQuery style using $('<selector>').rangerMask(maskObject).