I'm encountering an issue with setting the readonly attribute on textareas. I am using JQuery to apply the attribute, as shown here:
$("#mytextarea").prop("readonly", true);
For CSS styling:
textarea { width: 400px; height: 400px; }
textarea[readonly] { overflow: auto; }
And in the HTML:
<textarea id="mytextarea">Lorem ipsum [...] ament.</textarea>
However, in Internet Explorer 9, the scrollbars are not displayed, making it difficult for users to read the overflow content. This behavior is not observed in other major browsers where users can freely scroll within the textarea without being able to edit its content.
Can anyone suggest a solution to fix this issue?