igorescobar / jQuery-Mask-Plugin

A jQuery Plugin to make masks on form fields and HTML elements.
http://igorescobar.github.io/jQuery-Mask-Plugin/
Other
4.77k stars 1.42k forks source link

How to first fill integer when I'm typing? #717

Open bshafiei-ir opened 5 years ago

bshafiei-ir commented 5 years ago

Hi When I'm typing for example 1,500.25 first it complete decimal part and then integer part. In blow picture I'm typing 6 times.

Untitled-4

$(this).mask("000,000,000,000,000.00", {reverse: true});

I need first 1500 be complete and after I typed .(dot) then decimal part be complete.

@igorescobar

koba-1 commented 4 years ago

I think the same, this is not working good. For example, I think this is a better way to user decimal numbers (check the "input-4"): https://jsfiddle.net/nosir/aLnhdf3z/ I'm using jQuery-Mask-Plugin but for this type of input I think it isn't adeguate, for now.