I have a which is filled by javascript.
The text inserted to the textarea is dynamic and can have different length, thus I need the textarea to be dynamically resize after the javascript entered the text.
I would like the textarea to have max width and if it’s field the text will continue to fill in the next line causing the textarea height to grow.
How do I achieve such thing ?
http://www.jacklmoore.com/autosize
May be what you need and add a max-height to the text-area CSS.