Posts by Rodrigo Petrella • 26 points
1 post
-
1
votes3
answers1154
viewsA: How do I allow only numbers and a special character in javascript?
An alternative would be to use a mask plugin with jQuery: $('#txtCep').mask('99999-999'); <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>…