iMask apply in input with value
HTML
<script src="https://github.com/RobinHerbots/Inputmask/blob/4.x/dist/jquery.inputmask.bundle.js"></script>
<p>Value: <input id="number-mask" placeholder="0.00" value="0.00" type="text" /> </p>
CSS
input {
text-align: right;
}
CoffeeScript
var numberMask = new IMask(
document.getElementById('number-mask'),
{
mask: Number,
min: 0.00,
max: 100000000.00,
thousandsSeparator: ' '
});