mask - How to customize the Masked Input jQuery plugin -


i using jquery mask plugin from

http://digitalbush.com/projects/masked-input-plugin/

i want customize plugin , have tried best can't.

what want is

  1. i can enter digits only.
  2. all digits formatted automatically (,) after every 3rd number.
  3. only 2 digits after (.)

i using mask:

$("#product").mask("999,999,999.99",{placeholder:" "}); 

the problem if need type 150.50, need bring cursor on exact place , type.

for example in above mask if type 150.50 text box looks this: [][][],[][][],150.50 [] blank space. want 150.50 shown, without (,)s.
if type 1150.50 show 1,150.50, want formatting automatically occur once done typing , don't want show (,)s.

you not want masking plugin, formatting plugin ..

have @ http://plugins.jquery.com/project/number_format


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -