Answers for "how do you give an automatic size to an input tag?"

2

input width autosize

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

autosize input css

onkeypress="this.style.width = (this.value.length + 1) + 'em';"
Posted by: Guest on March-21-2021

Code answers related to "how do you give an automatic size to an input tag?"

Browse Popular Code Answers by Language