# Textarea that expands as you type text

Hi,

I have a Textarea where users can input text. However if users insert a large amount of text, I want the text area to expand accordingly. Any suggestion please

Thanks,

Jeyasri

Hello Jeyasri,

Not sure if you can do this easily, without JavaScript.
On a quick search I found this: https://gomakethings.com/automatically-expand-a-textarea-as-the-user-types-using-vanilla-javascript/

Hope this helps.

Solution

JEYASRI R wrote:

Hi,

I have a Textarea where users can input text. However if users insert a large amount of text, I want the text area to expand accordingly. Any suggestion please

Thanks,

Jeyasri

Hi Jeyasri,

Regards

Seema Pandey

Solution

Seema Pandey wrote:

JEYASRI R wrote:

Hi,

I have a Textarea where users can input text. However if users insert a large amount of text, I want the text area to expand accordingly. Any suggestion please

Thanks,

Jeyasri

Hi Jeyasri,

Regards

Seema Pandey

Hi,

Its very useful and working good, I want to first 5 line for expand the textarea then 6th line automaticallly enable scroll, if it is possible?

Thanks,

Jeyasri