How to create a scrollable text area that is disabled? By this, I mean that I would like the user to be able to scroll to see the contents of the text area, but not be able to edit it.
Why use <textarea> if the user cannot edit it?
<textarea>
A simple <div> will do the fixed-height trick and overflow:auto;
<div>
overflow:auto;
I think you need to know the readonly property.
readonly
Try it here: link
<textarea readonly="true"></textarea>
just use readonly property
Update:
<textarea readonly>Some text</textarea>
The easiest way is to use readonly instead.
another way would be to use a fixed-height div overflow:scroll , which looks like a text box, but it is not.
overflow:scroll