+ 1
How to get the data of textarea tag??
5 ответов
+ 2
It does work.
https://code.sololearn.com/WKfnsNj6k9FV/?ref=app
If the problem is something else, please link your code and specify the issue.
+ 3
Just the same as for other input tags: By reading the value property.
https://www.w3schools.com/jsref/prop_textarea_value.asp
You can easily find it out, if you only put a little effort in a quick Google search.
+ 2
<!---html-->
<textarea>Coding is fun</textarea>
/**JavaScript**/
const text = document.querySelector("textarea").value;
console.log(text);
+ 2
Both methods are not working..
+ 1
Lisa thanks...