view raw
Wardhana Wardhana - 6 months ago 53
Javascript Question

How to change format decimal using jquery mask input?

I am using Jquery input mask. I have a problem to change decimal format number. If I using

$(selector).inputmask({ 'alias': 'decimal', 'groupSeparator': '.', 'autoGroup': true, 'rightAlign': false });
the decimal result is
. How to change to format


You can set the radixPoint to , and groupSeparator to ..

    'alias': 'decimal',
    'radixPoint': ',',
    'groupSeparator': '.',
    'autoGroup': true,
    'rightAlign': false,
    'numericInput': true

Please also check this example: