im not sure if this is possible but I want an input box where the user can only type in the following pattern: (Number)(-)(Number)(Number)(Letter)
The user cannot type anything else but this pattern. Any leads would be appreciated
im not sure if this is possible but I want an input box where the user can only type in the following pattern: (Number)(-)(Number)(Number)(Letter)
The user cannot type anything else but this pattern. Any leads would be appreciated
You can do this with a regex (what you specify in the "pattern" value):
<input type="text" pattern="regex comes here">
And in your case i believe you will need this regex:
[\d][-][\d][\d][a-zA-Z]