views:

1969

answers:

1

Is it possible to hide the scroll bar on an HTML textarea element using CSS or any other means ?

+2  A: 

style="overflow:hidden"

Not sure why you'd want to do that, though.

naeblis
Thanks. The reason is that I need to display some text using javascript in an element that has a "value" attribute and can be multi-line.
Ebircsa
you could also use a pre or blockquote element
scunliffe
You *should* use a different element. Form controls are used to accept use input, not display output. Pick an element with the correct semantics.
David Dorward