Masked Input Plugin for jQuery



This is a masked input plugin for the jQuery javascript library. It allows a user to more easily enter fixed width input where you would like them to enter the data in a certain format (dates,phone numbers, etc). It has been tested on Internet Explorer, Firefox, Safari, Opera, and Chrome. A mask is defined by a format made up of mask literals and mask definitions. Any character not in the definitions list below is considered a mask literal. Mask literals will be automatically entered for the user as they type and will not be able to be removed by the user.The following mask definitions are predefined:

Phone(999) 999-9999
Phone(Readonly)(999) 999-9999
Phone + Ext(999) 999-9999? x99999
Russian Phone+7 999 999 999
Int'l-1 Phone+9 999 999 999
Int'l-2 Phone+99 999 999 999
Int'l-9 Phone+999 999 999 999
Tax ID99-9999999
Product Keya*-999-a999
Eye Script~9.99 ~9.99 999
Purchase Orderaaa-999-***
Phone (autoclear=false)(999) 999-9999
Phone + Ext (autoclear=false)(999) 999-9999? x99999