Inputmask: Prevent/Not allow decimal (comma) input

Created on 24 Feb 2021  路  1Comment  路  Source: RobinHerbots/Inputmask

I need to add just integer prevent the decimal value (in my case prevent to typing ,). i tried delete the radixpoint property, but it can't read the group separator. Is it possible to make it with this package?

$("#area").inputmask('numeric', {
            radixPoint:",",
            groupSeparator: ".",
            allowMinus: false,
            unmaskAsNumber: true,
            removeMaskOnSubmit: true,
            inputType: "number",

            autoUnmask: true,
        })
  • OS: Windows 10
  • Browser : Chrome
  • Inputmask version : 5.0.5

Most helpful comment

@RayhanYulanda ,

Use the integer alias.

$("#area").inputmask('integer');

>All comments

@RayhanYulanda ,

Use the integer alias.

$("#area").inputmask('integer');
Was this page helpful?
0 / 5 - 0 ratings