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.
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.
This is the solution I ended up using. I wanted an inline solution, and this so far seems to work great:
I wrote this jquery function that seems to work.
You need to specify min-height in css though, and unless you want to do some coding, it needs to be two digits long. ie 12px;
@Georgiy Ivankin made a suggestion in a comment, I used it successfully :) -- , but with slight changes:
It stops expanding after it reaches max height of 200px