<script src="comun/datePickerJQuery/js/jquery-1.7.2.min.js">
</script> <script> $("#number").on({ "focus": function(event) { $(event.target).select(); }, "keyup": function(event) { $(event.target).val(function(index, value) { return value.replace(/\D/g, "") .replace(/([0-9])([0-9]{2})$/, '$1.$2') .replace(/\B(?=(\d{3})+(?!\d)\.?)/g, ","); }); } });</script>
No hay comentarios:
Publicar un comentario