I have some input number fields, and i prevented some key inputs such as "e", "+", "-" ... I was wondering if it's possible to add another constraint about maximum length in the same control.
maxlength doesn't work, i've added max and min, but my scope is to prevent user from typing more than 2 digits.
<input type="number" class="form-control"
onkeydown="return (event.keyCode !== 69 && event.keyCode !== 109 && event.keyCode !== 107 && event.keyCode !== 187 && event.keyCode !== 189 )"
id="inputMVD" formControlName="dataEvaluationMonth" maxlength="2" name="Month" min="1" max="12" required>
as i wrote above, I need to prevent the user from typing a specific number of digits ( it could be 2 or 4 or 10)