August 20, 2013 7:40 am

How to Mask an input box in jQuery

Today i have some requirement for masking on one of my project and i have used a masking lightweight library and i love it. So i have decided to write about it on PHPGang. Masking allows users to easily fix width of input boxes where you require input from user in a pacific format like dates, phone numbers etc.


Follow blow given instructions and implement masking in you website.

How to use it:

Include jQuery Library and jQuery Input Mask plugin.

Define your masks in your input boxes using data-inputmask attribute.

Call the plugin


Author Huzoor Bux

I am Huzoor Bux from Karachi (Pakistan). I have been working as a PHP Developer from last 5+ years, and its my passion to learn new things and implement them as a practice. Basically I am a PHP developer but now days exploring more in HTML5, CSS and jQuery libraries.

Tutorial Categories:
  • Lavish

    wow its awsome