Get 2024 Templates Mega Bundle!$1000 worth of 19 Bootstrap HTML, Vue & React Templates + 3 Vector Sets for just $99
Get for 99$

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
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • 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("&euro; 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
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(