+ 1
J.S HELP: with form + input
J.S. I want to make the textareas width to be the form.input value. If you the form.input value is 88px, then the textarea width should be 88px. I can't get it to work. Could someone help me with this please? https://code.sololearn.com/WzF7L0ugS255/?ref=app
2 Answers
+ 2
You made a few rookie mistakes:
1. You don't need to use form here
2. I don't get why you used textarea instead of text input, because in this case it would work better
3. You declared a variable before the window loaded, and I remember answering that a few times for you
4. You defined x, then never used it again
5. You didn't use "px"
6. There is a way better way to do it
6l7. And I made it for you
https://code.sololearn.com/WEjHhE8aU96J/?ref=app
It doesn't contain errors
It changes when a button is pressed in the input field
It ACTUALLY changes
And it doesn't contain forms
0
Airree Thanks for the code.
I made text area because i'm working on a code that requires textarea.