Answers for "how to set a max value in html"

0

input max length

<input maxlength="10" />
Posted by: Guest on October-02-2020
0

javascript add maxlength attribute

document.getElementById('text_input').setAttribute('maxlength', 200);
Posted by: Guest on March-27-2022

Code answers related to "how to set a max value in html"

Browse Popular Code Answers by Language