I'm using jQuery Masked Input in a project. I made a mask like this:
<script>
$(document).ready(function () {
$("#QuantidadeHoras").mask("99:99");
});
</script>
The <input>
only lets me fill in the field with numbers, but I can type an invalid time, for example, 88:88
. The right thing would be to fill the minutes between 00
and 59
.
How can I make the mask not allow this type of fill?