Simplest Number Input Mask Plugin with jQuery - Simple Mask

Simplest Number Input Mask Plugin with jQuery - Simple Mask
File Size: 135 KB
Views Total:
Last Update:
Publish Date:
Official Website: Go to website
License: MIT

Simple Mask is a tiny jQuery plugin to make masks on input fields that allows the users to enter numbers in a certain format.

Also has the ability to jump automatically after certain numbers in an input to the next field.


$ npm install jquerysimplemask --save

# Bower
$ bower install jquerysimplemask --save

How to use it:

1. Include the jQuery simple mask plugin after loading jQuery library.

<script src="//"></script>
<script src="src/jquery.SimpleMask.js"></script>

2. Call the plugin on the input fields and custom the mask rules like this:

  'mask': ['####-####','#####-####'] 

3. More configurations.

// auto jump to next input fields 
// e.g. $('#input-2')
nextInput: null,

// onComplete event
onComplete : null



  • Fix mac paste string.


  • v1.0.6


  • Added select on focus on nextinput is true.


  • fixed.


  • Added helper masks: date, cpf, cnpj, cep, phone;

This awesome jQuery plugin is developed by DevUtils. For more Advanced Usages, please check the demo page or visit the official website.