Adiciona mascara pro CEP
-
Valeu pelo plugin man…
Precisei disso… se alguem precisar é só adicionar ao arquivo jquery.maskedinput.min.js
// CEP.
$(‘#billing_postcode’).focusout(function(){
var postcode, element;
element = $(this);
element.unmask();
postcode = element.val().replace(/\D/g, ”);if (postcode.length > 8) {
element.mask(‘99999-999’);
} else {
element.mask(‘99999-999’);
}
}).trigger(‘focusout’);Abra?o
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Adiciona mascara pro CEP’ is closed to new replies.