on-internet
← Community

Set character amount for html input

Stack Overflow ·

<input type="text" id="cardnum" name="cardnum" placeholder="1234567800001234" inputmode="numeric" pattern="\[0-9\]" maxlength="16" minlength="16" {16} required\> This is my current code, I want the input to be numerical 16 digits like a card but keep getting the following error pop up current pop up

Comments

Sign in or sign up to comment and upvote.

No comments yet.