Link to home
Start Free TrialLog in
Avatar of mtiGirl
mtiGirl

asked on

How to resize a textbox on the fly.

I have an input type=text  readonly.  I want this textbox to be able to resize based on the length of the input that will populate it.  How can I do this??  I am using HTML and javascript.
ASKER CERTIFIED SOLUTION
Avatar of dfu23
dfu23

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nan1217
nan1217

You can use this script for what you're looking for.  They have several examples to show you what it does.  The difference for you would be that the text box would be disabled and the size would default to the length of the text.

http://www.flws.com.au/showusyourcode/codeLib/code/dynamicLength.asp?catID=2