
- Javascript Basics Tutorial
- Javascript - Home
- Javascript - Overview
- Javascript - Syntax
- Javascript - Enabling
- Javascript - Placement
- Javascript - Variables
- Javascript - Operators
- Javascript - If...Else
- Javascript - Switch Case
- Javascript - While Loop
- Javascript - For Loop
- Javascript - For...in
- Javascript - Loop Control
- Javascript - Functions
- Javascript - Events
- Javascript - Cookies
- Javascript - Page Redirect
- Javascript - Dialog Boxes
- Javascript - Void Keyword
- Javascript - Page Printing
- JavaScript Objects
- Javascript - Objects
- Javascript - Number
- Javascript - Boolean
- Javascript - Strings
- Javascript - Arrays
- Javascript - Date
- Javascript - Math
- Javascript - RegExp
- Javascript - HTML DOM
- JavaScript Advanced
- Javascript - Error Handling
- Javascript - Validations
- Javascript - Animation
- Javascript - Multimedia
- Javascript - Debugging
- Javascript - Image Map
- Javascript - Browsers
- JavaScript Useful Resources
- Javascript - Questions And Answers
- Javascript - Quick Guide
- Javascript - Functions
- Javascript - Resources
How to disable resizable property of textarea using JavaScript?
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; }
- Related Articles
- How to change the shape of a textarea using JavaScript?
- How to disable Javascript when using Selenium?
- How to Disable Radio Buttons using JavaScript?
- HTML DOM Textarea cols Property
- HTML DOM Textarea rows Property
- HTML DOM Textarea placeholder Property
- HTML DOM Textarea disabled Property
- HTML DOM Textarea defaultValue Property
- HTML DOM Textarea name Property
- HTML DOM Textarea readOnly Property
- HTML DOM Textarea wrap Property
- HTML DOM Textarea autofocus Property
- HTML DOM Textarea form Property
- HTML DOM Textarea required Property
- HTML DOM Textarea maxLength Property

Advertisements