Get started with jquery.mask CDN

MIT licensed

JQuery Mask is a plugin that adds input masks to HTML forms for easier data entry.

Tags:
  • jquery
  • mask
  • input
  • form

Stable version

Copied!

How to start using jquery.mask CDN


$(document).ready(function() {
  // Select the input element and initialize the mask
  $('.mask-phone').mask('(999) 999-9999');

  // Select the input element for CNPJ and initialize the mask with Brazilian CNPJ format
  $('.mask-cnpj').mask('99.999.999/9999-99');
});
Copied!
Copied!

All versions