Answers for "how to apply maxlength in html"

1

html input maxlength

<input type="text" maxlength="4"/>
Posted by: Guest on April-13-2021
0

javascript add maxlength attribute

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

Browse Popular Code Answers by Language