In html input tah, when I set max="16", it can take more than 16. Like, if I enter more than 16 digit, it allows me to enter. But I wanted that, Only 16 digit can enter, not Number 16. Not more than.
How can I do it.....?
In html input tah, when I set max="16", it can take more than 16. Like, if I enter more than 16 digit, it allows me to enter. But I wanted that, Only 16 digit can enter, not Number 16. Not more than.
How can I do it.....?
You can use max="" attribute.
Example: <input type="number" id="quantity" name="quantity" min="1" max="16">