I have this mask:
$(".cep").mask("99999-999");
Nevertheless, when I hold a number key, like 1, it fills the input text really fast, in a way that the mask is ignored (Instead of "11111-111", it fills like "111111111"), and this is immeasurably atrocious and bug-prone when combined with events such as change or keydown.
Anyway, is there a way to apply the mask on keydown, so that the user can hold to death the button and be bound to it??
Here's the class on HTML:
<div class="input text col-sm-6 col-xs-6 required">
<input name="data[Fornecedor][cep]" placeholder="* CEP" maxlength="20" type="text" id="FornecedorCep" required="required" class="cep">
</div>