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.

Share:
16,943
Dennis Offinga
Author by

Dennis Offinga

Updated on June 04, 2022

Comments

  • Dennis Offinga
    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
    CpnCrunch almost 7 years
    That just removes the resize handle, but doesn't affect scrolling. The jsfiddle example will still scroll if you go past the bottom.