I have an input field for phone numbers. If the first number is 8, it should be automatically removed when a person types it.
If a person starts writing a number with t
Amazingly, you don't need JavaScript:
<input type="tel" name="phone" pattern="[^8].*" title="Numbers cannot start with 8" />
And it will work even if the user has JavaScript disabled :)