Answers for "auto adjust input field width to text"

1

input width autosize

<input 	id="txt" 
		type="text" 
        onkeypress="this.style.width = (this.value.length + 1) + 'em';">
Posted by: Guest on October-26-2020

Code answers related to "auto adjust input field width to text"

Browse Popular Code Answers by Language