Input Mask Plugin With JavaScript/jQuery – inputmask

Form
Easy JavaScript-jQuery Input Mask Plugin - inputmask
File Size: 11.79 KB
Views Total: 3914 views
Last Update:April 23, 2024
Publish Date: September 20, 2010
Official Website: Go to website
License: MIT
Plugin Author:
Demo    Download

A Free jQuery plugin with Input Mask plugin is a lightweight and easy to use with JavaScript/jQuery plugin. It makes it easier to use and create an input mask. An input mask helps the user side with the input by predefined format. This can be useful for dates, numeric, phone numbers, email-address etc.

How To Use:

Add jQuery after add Input Mask plugin.

<!-- As A Vanilla JS Plugin -->
<script src="/path/to/dist/inputmask.min.js"></script>
<!-- As A jQuery Plugin -->
<script src="/path/to/cdn/jquery.min.js"></script>
<script src="/path/to/dist/jquery.inputmask.min.js"></script>
<!-- Allows data-input attribute -->
<script src="/path/to/dist/bindings/inputmask.binding.js"></script>

Use data-inputmask-<the name of the option>=”value”

<input data-inputmask="'alias': 'date'" />
<div contenteditable="true" data-inputmask="'mask': '9', 'repeat': 10, 'greedy' : false"></div>
<textarea data-inputmask="'mask': '99-9999999'" /></textarea>

Add Script plugin on the target element.

$("Selector").inputmask();
$("Selector").inputmask("99-9999999");

Default masking definitions.

  • 9: numeric
  • a: alphabetical
  • *: alphanumeric

Predefined mask alias.

  • datetime
  • numeric
  • cssunit
  • url
  • IP
  • email
  • mac
  • vin

Done

Thanks for make jQuery plugin is developed by For more Helpfull for users, please check the demo page or visit the official website.
List Of Version :
  • 5.0.9-beta.62
  • 5.0.9-beta.61
  • 5.0.9-beta.60
  • 5.0.9-beta.59
  • 5.0.9-beta.58
  • 5.0.9-beta.56
  • 5.0.9-beta.54
  • 5.0.9-beta.53
  • 5.0.9-beta.52
  • 5.0.9-beta.51
  • 5.0.9-beta.45
  • 5.0.9-beta.39
  • 5.0.9-beta.38
  • 5.0.9-beta.37
  • 5.0.9-beta.36
  • 5.0.9-beta.35
  • 5.0.9-beta.33
  • 5.0.9-beta.32
  • 5.0.9-beta.30
  • 5.0.9-beta.28
  • 5.0.9-beta.25
  • 5.0.9-beta.24
  • 5.0.9-beta.21
  • 5.0.9-beta.18
  • 5.0.9-beta.17
  • 5.0.9-beta.16
  • 5.0.9-beta.10
  • 5.0.9-beta.7
  • 5.0.9-beta.6
  • 5.0.8

Mady

Mady Schaferhoff is an expert jQuery script at jQuerypost. He offers web development services to clients globally. He also loves sharing Html,CSS, jQuery knowledge through blog posts like this one.

Related jQuery Plugins

You Might Also Like