How to Auto Resize Textarea using HTML CSS & JavaScript

How to Auto Resize Textarea using HTML CSS & JavaScript

CodingNepal

2 года назад

62,548 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

CodingNepal
CodingNepal - 30.06.2021 16:14

Hope this video was helpful and remember to Like & Subscribe 💙

Ответить
leslievelvy
leslievelvy - 24.10.2023 23:33

the tutorial was easy after i realized that I was using the wrong class name hahaha thank you 4 this!!

Ответить
Bhaskar Thakulla
Bhaskar Thakulla - 17.10.2023 04:14

Thank you so much for this!

Ответить
Денис Свистоплясов
Денис Свистоплясов - 25.08.2023 18:28

Isn't better to do it on "input" event?

Ответить
Satyaraj Rana
Satyaraj Rana - 25.08.2023 10:36

Very helpful video, thanks so much!!!!

Ответить
KjshServer
KjshServer - 30.07.2023 05:04

En vez de usar textarea.addEventListener("keyup", e => {}) usa textarea.addEventListener("input", e => {}) es más preciso 🙏💪

Ответить
Sasha Chechoitko
Sasha Chechoitko - 07.06.2023 18:17

default height of textarea are 2 lines, so if we want to have height less that 2 default lines we need set '0px' instead of 'auto'

Ответить
김민규
김민규 - 06.05.2023 19:19

Thanks!!

Ответить
D M
D M - 11.03.2023 08:52

there is 15px padding but it is not including for height. because height is 59 and returned 55. if included padding too may it was 59+14+14= 87px-4px = 83????

Ответить
Re Ving
Re Ving - 01.02.2023 17:41

why it increase my textarea's height every time i write a word

Ответить
DASTL
DASTL - 26.01.2023 23:20

i love you, thanks

Ответить
Wondwosen Terefe
Wondwosen Terefe - 01.12.2022 04:24

How to apply this on react?

Ответить
mohamed
mohamed - 22.11.2022 12:18

Thank you so much this help me a lot
I was try to fix this problem for last 6 hours and finally find this here my problem was to resize height to auto before calculate the scroll height again
Thank you again 💐

Ответить
NOTH SHOP
NOTH SHOP - 20.11.2022 10:29

can we autosize textarea when change path url on ROR?

Ответить
Jack Alee
Jack Alee - 09.11.2022 22:25

Thanks 🙏

Ответить
Vasanthi Vemuri
Vasanthi Vemuri - 30.09.2022 12:21

You are auto adjusting the height but how to auto adjust the width?

Ответить
CodeHellps
CodeHellps - 27.07.2022 00:21

just love this channel, people

Ответить
J. Villasmil
J. Villasmil - 07.06.2022 17:47

You did it in the best way

Ответить
Maemu Tendani Florance Ratshivhombela
Maemu Tendani Florance Ratshivhombela - 19.05.2022 00:08

I want to implement this on Nintex 2013 form but I have no idea where to start and it's been a 4 days struggle 😢

Ответить
주스마스터도미닉
주스마스터도미닉 - 28.03.2022 15:23

you helped me, you cool
thx!😆

Ответить
vidit gulyani
vidit gulyani - 16.03.2022 17:43

How did setting style to auto worked if we put the line above?

Ответить