+ 3

[Solved] Custom javascript method to get value from textarea

I tried to create custom method to get value from textarea, but it shows error, can you see and help me to fix this. https://code.sololearn.com/W20gQkQ45MOB/?ref=app

17th Aug 2020, 3:48 PM
Bibek Oli
Bibek Oli - avatar
2 Answers
+ 4
instead of String, use HTMLTextAreaElement https://code.sololearn.com/Wd088DvjfMNh/?ref=app
17th Aug 2020, 3:58 PM
Taste
Taste - avatar
0
You added a custom function to string but you tried to apply it to a textare. What type is the result of the queryselector.
17th Aug 2020, 3:50 PM
Dragonxiv
Dragonxiv - avatar