i am using jauery mask plugin from
http://digitalbush.com/projects/masked-input-plugin/
i want to customize my plugin and try my besy to do it but i can't.
What i want is
- i can enter digits only.
- all the digits will be formated automitcally (,) after every 3rd number.
- only two digits after (.)
i use follwoing
$("#product").mask("999,999,999.99",{placeholder:" "});
the problem with this is: if i need to type only 150.50, i need to bring my cursore on the exact place and type.
for example in the above mask if i type 150.50 the text box look like this
[][][],[][][],150.50 where [] is blank space. what i want is 150.50 only and if i type 1150.50 then 1,150.50
but i want the formating automaticaly once i am typing and dont want to show extra (,)
Thanks