Disable scroll on textarea
16,943
Solution 1
Just add in the css file:
textarea {
resize: none;
}
or:
<textarea rows="10" cols="45" placeholder="Animatie:" name="description" style="resize: none"></textarea>
Fiddle: https://jsfiddle.net/p6am6dze/2/
Solution 2
Try this:
<textarea rows="10" cols="45" style="overflow:hidden;resize:none;" placeholder="Animatie:" name="description" ></textarea>
style="overflow:hidden;resize:none;", this will fulfill your requirement hopefully.
Author by
Dennis Offinga
Updated on June 04, 2022Comments
-
Dennis Offinga about 2 years
I'm trying to make the textarea unscrollable but i'm unable to find a way to get the textarea unscrollable.
I've made a simple example in jsfiddle
Thanks in advance.
-
CpnCrunch almost 7 yearsThat just removes the resize handle, but doesn't affect scrolling. The jsfiddle example will still scroll if you go past the bottom.