HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Textarea Object : Change the contents of a text area
The value property sets or returns the contents of a text area.
Property | |||||
---|---|---|---|---|---|
value | Yes | Yes | Yes | Yes | Yes |
Return the value property:
Set the value property:
Value | Description |
---|---|
text | Specifies the value (contents) of the text area |
Return Value: | A String, representing the contents/text of the text area |
---|
Get the contents of a text area:
var x = document.getElementById("myTextarea").value;
❮ Textarea Object