RobinHerbots / Inputmask

Input Mask plugin
https://robinherbots.github.io/Inputmask/
MIT License
6.39k stars 2.17k forks source link

Currency formatting questions #1286

Open jwright04 opened 8 years ago

jwright04 commented 8 years ago

Hello,

I'm really close in configuring my inputmask but needed a push across the finish line. I have the following:

$("#mask-carAmount").inputmask({
            alias: 'currency',
            jitMasking: true,
            unmaskAsNumber: true,
            showMaskOnFocus: true,
            rightAlign: false,
            unmaskAsNumber: true,
            digits: "0"
});

This almost gives me desired behavior. But I need help with the following:

  1. My placeholder text from my input field does not show
  2. The cursor appears on the left hand side of the $ sign until the input is clicked, then it jumps to the right

Can someone provide detail to fix these issues?

RobinHerbots commented 8 years ago

@jwright04 ,

Try removing the jitMasking option.