How can I restrict the number of alphabets in type="text" in form in HTML? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I restrict the number of alphabets in type="text" in form in HTML?

Using maxlength attribute in html,I cannot able to restrict the number of alphabets.Only I can able to restrict the number of digits

25th May 2020, 7:22 AM
Charm
Charm - avatar
2 Answers
25th May 2020, 7:32 AM
Calviղ
Calviղ - avatar
0
I don't think it's possible without JavaScript
25th May 2020, 8:45 AM
Ore
Ore - avatar