2
Guys I’m using maskMoney but it only format value if I click the input, have you change it? That is to format it as soon as the page is loaded?
$(function() {
$("input").maskMoney({
allowNegative: true,
thousands: '.',
decimal: ',',
affixesStay: false
});
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-maskmoney/3.0.2/jquery.maskMoney.min.js"></script>
<input type="text" value="-90.00"/>
very good, it worked 100%. It takes away just one more doubt, as I limit the maximum number to 0.000.000,000?
– Hugo Borges
@Hugoborges, I don’t know if it’s possible through
API
ofmaskMoney
, but try to set amaxlength
to theinput
– Tobias Mesquita
I edited the answer, it’s not 100%, but it’s a start.
– Tobias Mesquita
it was very good there :)
– Hugo Borges