A flexible html input masking library built on jQuery
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
jasmine-1.0.1
specs
README.md
browserTest.html
demo.html
jquery-1.6.2.js
jquery.rangerMask.js
license.txt
specRunner.html

README.md

RangerMask

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).