Posts by Gilson Freitas • 1 point
1 post
-
0
votes2
answers188
viewsA: Validate input to receive value with point separator with jquery?
Try something like: function somenteNumeros() { var er = /\d*(\.\d\d)$/; var valCampo = document.getElementById('campo').value; if (!er.test(valCampo)) { document.getElementById('campo').value=''; }…