+ 1

Hello friends i want to allow only 5 digits in my input tag how can i do that in html?

Html tag

7th May 2019, 8:22 AM
Ram Teja
Ram Teja - avatar
3 Respostas
+ 1
Use pattern="[0-9]{5}" or pattern="\d{5}"
7th May 2019, 8:41 AM
Prokopios Poulimenos
Prokopios Poulimenos - avatar
0
<input type="" maxlength="5">
7th May 2019, 12:11 PM
GABBY OFORI