Quem
Portfolio
Leia
Contato

Máscaras com jQuery

$(document).ready(function () {
    $('.telefone').mask('(00) 000000000');
    $('.cpf').mask('000.000.000-00');
    $('.data').mask('00/00/0000');
    $('.hora').mask('00:00');
    $('.dinheiro').mask("###0,00", {reverse: true});
});

Snippet para aplicar máscara em campos a depender de sua classe CSS

https://github.com/igorescobar/jQuery-Mask-Plugin

Subscribe
Notify of
guest

0 Comentários
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
homeenvelopeuserphone-handsetlaptop-phonetext-align-center
pt_BR
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram