Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

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.


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (6)


That's a good one. But I have a different choice. When I first tried Chaturbate, I was skeptical. But after a while, I realized how it helped me step out of my comfort zone and free myself. The chaturbate reviews are not only about the individual service, but also about my personal growth because of it. The experience has improved my confidence and taught me to be more open-minded. I found a community of people who support me and also found a way to express myself. The Chaturbate review is not only about the individual service, but also about my personal growth through it.



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.



I did, but it has ,00 behind. That's why I'm not using it.



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.



It works now. Thank you.



Great happy 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.
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(