input width doesnt increase automatically

53

input width doesn't increase automatically -

<input id="txt" type="text" onkeypress="this.style.width = ((this.value.length + 1) * 8) + 'px';">

Comments

Submit
0 Comments