Reputation:
I am using jQUERY AUTOGROW FROM HERE
NOW I have many <textarea>
that uses this plugin
but I want some of my special <textarea>
to auto grow up to a certain height
it increases above that the '` must go overflow;
For example,
textarea-> original height->150px;
if (keyup){ then autogrow }
if(height>300px){overflow->auto}
How can I accomplish this?
a working example is facebook 's messaging <textarea>
in https://www.facebook.com/messages/
Upvotes: 1
Views: 521
Reputation: 1549
Change the flow?
if (keyup){
if (height>300) {
overflow->auto
} else {
autogrow
}
}
Upvotes: 1