Hello, my question is about a field validation for decimal value. If the value is less than 500.00 I show an error message, otherwise step to the second field, as soon as the person types the value, the mask is already added.
I'm using it this way:
function valid_simulation(form1) {
if(parseInt($("#selector").val()) < 500) {
alert("valor não é valido");
return false;
}
}
In this way I can validate a value less than 500.00, but if it is greater than 1,000.00 it shows the error message.