Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong Masking when value without FractionDigits with precision 2 #271

Open
wiemKh opened this issue Mar 18, 2021 · 0 comments
Open

Wrong Masking when value without FractionDigits with precision 2 #271

wiemKh opened this issue Mar 18, 2021 · 0 comments

Comments

@wiemKh
Copy link

wiemKh commented Mar 18, 2021

Hello,
I am using jquery-maskmoney for adding a thousand separators for decimal
I used this configuration

 $(".money").maskMoney({    
        decimal: ",",
        thousands: " ",
        precision : 2,
        allowZero : true
    });

but I want the user can insert decimal with 1 precision or 0 precision or 2 precision
for example, when user want to insert 1500, he should insert 1500,00 for the mask work
I don't want to oblige user typing ,00
also I use the same input for the update when it contains a value for example 1500 without,00
it transforms to 15,00 when opening modal
any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant