How can I make a textarea automatically expand using jQuery?
I have a textbox for explaining the agenda of the meeting, so I want to expand that textbox when my agenda’s text keep growing that textbox area.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I have tried lots andLink is dead. Newer version is available here. See below for old version.this one is great.
You can try by pressing and hold enter key in textarea. Compare the effect with the other auto expanding textarea plugin….
edit based on comment
note: you should include the needed js files…
To prevent the scrollbar in the textarea from flashing on & off during expansion/contraction, you can set the
overflowtohiddenas well:Update:
The link above is broken. But you can still get the javascript files here.