Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

input width autosize

<input 	id="txt" 
		type="text" 
        onkeypress="this.style.width = (this.value.length + 1) + 'em';">
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #input #width #autosize
ADD COMMENT
Topic
Name
5+6 =