3

I have placed a currency input mask on the textbox.

But when the form is submitted, the leading '$' sign and the separating commas need to be removed so that the value can be binded to as a decimal.

Here is how I set the autoUnmask as described in here.

$('[data-mask="currency"]').inputmask({alias:"currency",'autoUnmask':true});

which doesn't appear effective.

What is the correct way to set up autoUnmask?

Blaise
  • 21,314
  • 28
  • 108
  • 169

1 Answers1

6

Instead of autoUnmask:true, we should use removeMaskOnSubmit:true.

Blaise
  • 21,314
  • 28
  • 108
  • 169