Home >Web Front-end >JS Tutorial >Plug-in for making textarea adaptive to height based on jquery_jquery

Plug-in for making textarea adaptive to height based on jquery_jquery

WBOY
WBOYOriginal
2016-05-16 18:22:061142browse

Introduction
1. This textarea is like the google calendar's description when you create one new or update one existence calendar;
2. Its height will be changed accroding to user's input;
3. Its scrollbar is removed, which makes it much user friendly. I guess you may like it.

Using the code

1. import the jquery.js and textarea.js




2. add the following css
3. add one textare html control


4. make it works

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn