0

HTML fixing number of digits

how to restrict number of digits to 6 in type number.. max length is only working for text

25th May 2020, 4:50 PM
amith
3 Answers
+ 3
https://www.w3schools.com/tags/att_input_type_number.asp Try max- <input type="number" id="quantity" name="quantity" max="999999"><br><br>
25th May 2020, 5:44 PM
ODLNT
ODLNT - avatar
+ 2
Where is your code . Share it with us so that we can help you
25th May 2020, 5:08 PM
Ayush Kumar
Ayush Kumar - avatar
+ 1
no.. maxlength is only working for text not for number @ore
25th May 2020, 4:56 PM
amith