Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making a readonly <textarea> scrollable

Status
Not open for further replies.

tas2826

Programmer
Jul 6, 2005
26
0
0
US
I have a text area on a page that is used to hold auto generated comments based on user actions on the page. I do not want them to edit this textarea, so it is readonly. However, in IE then it will not scroll because the scrollbar is disabled too.

I have to use <textarea>, so is there a way to make a readonly textarea be scrollable? I had read some post regarding applying some kind of style that would allow this. Can anyone provide a example of the CSS to make this happen?

Here is the tag.

Code:
<textarea name="comment" disabled="true" id="comment" cols="57" rows="2" readonly wrap="soft"></textarea>

Thanks in advance for the help.

Troy
 
Never mind.

Must be Friday or something. I see where I was wrong. Helps if I take the disabled='true' out. No wonder the scrollbar did not work. Dang copy/paste!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top