Answers for "how to change the width of input element to auto"

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 "how to change the width of input element to auto"

Browse Popular Code Answers by Language