Disabled textarea can't scroll in IE8 - workaround?

In IE8, a disabled text field will not scroll.

For instance:

<textarea style="width: 85%; overflow-y: scroll;" rows="2" name="blog[comment]" id="blog_comment" disabled="disabled" cols="30">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere, erat eu ornare eleifend, sapien eros faucibus metus, nec dapibus erat ante sed lorem. Cras tempus maximus eros, ut hendrerit est. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</textarea> 

It works fine in FireFox, but in IE8 the user cannot scroll it, so the user cannot see the full comment.

It also works with readonly , but I want to use disabled .

Is there a fix or workaround?

+4
source share

Source: https://habr.com/ru/post/1415911/


All Articles