I tried to use br-masker, but I can't make it work the way I need it. I'm not sure though, if that is possible at all..
I want the input to add .00 if the user doesn't put .xx in himself. e.g. the user types 42 I want to display 42.00, the user types 42.3 I want to display 42.30 and if the user types 42.35 I want to display 42.35.
I can only achieve that when the user types 42 it displays 0.42 (so the user has to type 4200 in order to get 42.00). Is this the designed way to do that or am I doing something wrong?
I tried to use br-masker, but I can't make it work the way I need it. I'm not sure though, if that is possible at all.. I want the input to add .00 if the user doesn't put .xx in himself. e.g. the user types 42 I want to display 42.00, the user types 42.3 I want to display 42.30 and if the user types 42.35 I want to display 42.35.
I can only achieve that when the user types 42 it displays 0.42 (so the user has to type 4200 in order to get 42.00). Is this the designed way to do that or am I doing something wrong?