Máscaras de entrada para formatos brasileiros:
CEP, CPF, CNPJ, telefone e mais. Leve e fácil de usar.
$(document).ready(function() {
$('#frCep').simpleMask({
'mask': 'cep',
'nextInput': true
});
$('#frDtel').simpleMask({
'mask': 'ddd-tel9',
'nextInput': true
});
$('#frTel').simpleMask({
'mask': 'tel9',
'nextInput': true
});
$('#frData').simpleMask({
'mask': 'data',
'nextInput': true
});
$('#frCpf').simpleMask({
'mask': 'cpf',
'nextInput': true
});
$('#frCnpj').simpleMask({
'mask': 'cnpj',
'nextInput': true
});
});
$(document).ready(function() {
$('#frCep').simpleMask({
'mask': '#####-###',
'nextInput': $('#frDtel')
});
$('#frDtel').simpleMask({
'mask': ['(##) ####-####', '(##) #####-####'],
'nextInput': $('#frTel')
});
$('#frTel').simpleMask({
'mask': ['####-####', '#####-####'],
'nextInput': $('#frData')
});
$('#frData').simpleMask({
'mask': '##/##/####',
'nextInput': $('#frCpf')
});
$('#frCpf').simpleMask({
'mask': '###.###.###-##',
'nextInput': $('#frCnpj')
});
$('#frCnpj').simpleMask({
'mask': '##.###.###/####-##'
});
$('#frCallback').simpleMask({
'mask': '#####',
'nextInput': true,
'onComplete': function(element) {
console.log('onComplete', element);
}
});
});