Decimal dynamic and add static masked method#138
Decimal dynamic and add static masked method#138micronull wants to merge 5 commits intoplentz:masterfrom
Conversation
micronull
commented
Aug 29, 2014
- If decimalAfterDot = true, fractional number when the user presses a key and a dot or a comma, or integral number without a fraction.
- Add static method masked. When you need only apply the mask to the tag. Without events.
1. If decimalAfterDot = true, fractional number when the user presses a key and a dot or a comma, or integral number without a fraction. 2. Add static method masked. When you need only apply the mask to the tag. Without events.
|
See example http://jsfiddle.net/a0tekg6z/ |
|
My users will love it when it's merged! Thank you! |
|
FYI, the fiddle doesn't work, my browser refuses to load the script (Chrome, OSX). |
|
Cool. I'm changed the function to the class, so now it will be easier to add functionality. Correct example for chrome. I used firefox on the old example. |
|
@De-Luxis sorry for taking so long for reply! A lot of users already asked to allow something like your pull request, but this is missing one point: formatting the number on the blur(example, if the users set the precision to 2, on blur, Thanks in advance, you rock :) |