PHP code example of dlepera88-jquery / jquery-mascara
1. Go to this page and download the library: Download dlepera88-jquery/jquery-mascara library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dlepera88-jquery / jquery-mascara example snippets
$('#celular-9').mascara('(00) 9 0000-0000', {placeholder: true});
Placeholder: (_\_) 9 \_\_\_\_-\_\_\_\_
$('#data').mascara('00/00/0000', {limitar: true});
Valor do campo: 30/01/1988
$('#data').mascara('00/00/0000', {limitar: false});
Valor do campo: 30/01/198800
$('#cnpj').mascara('00.000.000/0000-00');