Autosizing textbox
am 07.04.2008 21:52:59 von Tirrell CottonDoe sanyone know how I can make a multiline text box that grows vertically
as more text is entered (basically no scroll bars)?
Doe sanyone know how I can make a multiline text box that grows vertically
as more text is entered (basically no scroll bars)?
I threw this together haphazardly for IE 6. I didn't test it on other
browsers, but you could use it as a starting point if you don't mind
using javascript.
The script.
=A0 =A0
And here are the form elements. The textbox was only for debugging
purposes.
=A0
=A0 =A0
onkeydown=3D"getHeight();">
This assumes that you're starting with an empty textarea, so you'll
have to add to it a bit if the textArea is full. Hope it helped!
That worked ( after a little tweaking for server side controls). I also
managed to get the textbox to shrink if text is removed. Thanks again.
"Tirrell Cotton"
news:958C1DA3-65B4-468F-AA6F-08ADF66371A0@microsoft.com...
> Doe sanyone know how I can make a multiline text box that grows vertically
> as more text is entered (basically no scroll bars)?