I think the issue is with the order in which you define the mask alias and apply it - you define it after applying to the input which doesn’t apply to already instantiated instances.
Hi @chilledoj yes you are right it does work fine, it was my fault sorry.
Can I ask something else? I need to use the input mask to show the percentage and I’ve found this code
It depends how you want to use them. The library allows you to define some global settings, as per what you had previously.
Inputmask.extendAliases({
...
});
Or you can just pass in the relevant selector for the specific input in that code you have.
$( /* [YOUR DOM SELECTOR HERE ] */ ).inputmask("decimal",...)
One thing to note is that you can “extend” the aliases that are built-in to the library by defining a new one with a reference to the built-in using the alias config.