Input Mask for currency.
Hi, I want to make an inputmask for currency. I want to accomplish this Rp1.233.000. I use the code like this:
Inputmask("decimal", {
"alias": "decimal",
"groupSeparator": ".",
"autoGroup": true,
"digits": 0,
"digitsOptional": false,
placeholder: "0"
}).mask("#amount"); it works but it aligns the number to the right. So how can I accomplish it or what can i do to get that result? thanks.
Replies (5)
Deleted comment
Hi,
Have you checked the similar example shown in the documentation here
// Currency
Inputmask("€ 999.999.999,99", {
"numericInput": true
}).mask("#kt_inputmask_6"); Regards.
It seems the setup you use adds text-align: right css attribute to the input. Just try to reset it by adding: text-start class to the input.
Great
All the best with your projects.
Your Support Matters!
We will highly appreciate your Metronic Review on Themeforest.
Please go to Themeforest Downloads page, select Metronic & leave your feedback.