I'm building a small system in jquery and in the part of the edition where I need to inform a value programmatically to the field the JQuery InputMask does not look right. Below the example of my code and what happened on the screen.
$(".money")
.inputmask('numeric',{"autoUnmask": true,
radixPoint:",",
groupSeparator: ".",
allowMinus: false,
prefix: 'R$ ',
digits: 2,
digitsOptional: false,
rightAlign: true,
unmaskAsNumber: true
});
<div class="form-group">
<label>Valor:</label>
<input type="text" value="0" id="value" class="form-control money watch" required>
</div>
Edit 1 As requested in the comments as I am doing to put the value in the field. PS This trigger I got from a comment in github stating that it worked, I already tried with input too and it still did not work.