- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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; }
Advertisements