Open tiagocaus opened 5 years ago
$(document).ready(function() {
$(".moeda").mask("#.##0,00%", {
reverse: true,
translation: {
"%": {
pattern: /\%/,
optional: true
}
}
});
});
How to allow inclusion of the % symbol in the field?
The same field is used as a fixed value and or a percentage value.
In the same field, it can be:
1,45 (one dollar and forty-five cents) or 1,45% (one point forty-five percent)
Thank you.