Is it possible to restrict user input in an input box to only specific characters such as '7' and '8'? I tried adding validations with attributes like type="number", min="7" and max="8", but even then other keys can be inserted before validation occurs. Is there a way to allow only certain characters before the validation messages appear?
Best regards, Alper
Here is my code snippet:
<input type="number" min="0" max="12" name="input8">