How can I create a scrollable text area which is disabled? By this I mean, 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.
I think you need to know the readonly
property.
<textarea readonly>blabla<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/></textarea>
Try here : link
Why use a <textarea>
if user can't edit it ?
A simple <div>
would do the trick with fixed height and overflow:auto;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With