javascript - jquery.mask - allow users to enter separators ("." and ",") -


i'm using jquery.mask percentage , price amounts; i'm trying find way allow users input own "," , "." separators:

$(document).ready(function(){   $('.price').mask('###.###.###,##', { reverse: true });   $('.percent').mask('##.###,##', { reverse: false }); }); 

here's jsfiddle.net/muooymjd/2/

right now, everything's automatic; entering amount of 1000000, changes value 100.000,00 real-time , can't use "," or "." inside of input;

however, intention allow user input data first (allowing him enter 10,00, 100.00,34, 1000 or whatever needs);

and then, if decimals wrong, input when off-focus puts "," , "." in correct places.

is feasible?


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -