How to disable resizable property of textarea using JavaScript?

JavascriptWeb DevelopmentFront End Technology

To disable resizable property, use CSS style −

textarea {
   resize: none;
}

To disable specific textarea with different attribute values, try the following. Let’s say the attribute is set to “demo” −

textarea[name=demo] {
   resize: none;
}

Let’s say the id attribute is “demo” −

<textarea id="demo"></textarea>

For the above,

#demo {
   resize: none;
}


raja
Published on 11-Jan-2018 11:04:50
Advertisements