Skip to content

Wrong Masking when value without FractionDigits with precision 2 #271

@wiemKh

Description

@wiemKh

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions