I have a currency input field with jquery mask. I need to have min and max values and want user not able to enter invalid values. Here is my code:
$("#amount").inputmask("currency", {
min: -999,
max: 999,
allowMinus: true
});
But it works only on blur, when focus is moved away from the field. How to prevent to enter values not in the range?