Mascara field percentage and money using only number?
I have an html page made for mobile, I would like to put 2 types of mask being % percentage and R Dinheiro money but I need this field to be type="number" to show the numeric keypad of the mobile. I have already downloaded several masks and none of them were able to make it work in this way, could you help me please?
0
2 answers
You can use the jQuery Mask Plugin ( http://igorescobar.github.io/jQuery-Mask-Plugin/)
<script>
$(document).ready(function(){
$('.money2').mask('000.000.000.000.000,00', {reverse: true});
});
</script>
<input type="text" class="money2" >
1
Author: Denard Soares, 2016-03-29 20:17:51
Have you tried to use:
<input type="number" step="0.01" min="0" >
0
Author: Guerra, 2016-03-28 21:37:27