Home > Back-end >  How to make user's input only certain numbers?
How to make user's input only certain numbers?

Time:01-11

I have got an input, how can i make that the user only can write numbers from 1 to 31?

<input maxlength="2">

CodePudding user response:

<input type="number" min="1" max="31">
  • Related