Mask field Percentage and money using only number?

0

I have a html page made for mobile, I would like to put 2 types of masks being% Percentage and R $ Money but I need this field to be type="number" to show the numeric keypad of the cell phone . I already downloaded several masks and none could make it work this way, could you help me please?

    
asked by anonymous 28.03.2016 / 23:19

2 answers

1

You can use the jQuery Mask Plugin ( link )

<script>
$(document).ready(function(){
    $('.money2').mask('000.000.000.000.000,00', {reverse: true});
});     
</script>

<input type="text" class="money2" >
    
29.03.2016 / 22:17
0

Have you tried using:

<input type="number" step="0.01" min="0" >
    
28.03.2016 / 23:37