Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript add maxlength attribute

document.getElementById('text_input').setAttribute('maxlength', 200);
 
PREVIOUS NEXT
Tagged: #javascript #add #maxlength #attribute
ADD COMMENT
Topic
Name
9+2 =