Easy Tutorial
❮ Jsref Statements Dom Obj Datalist ❯

Textarea value Property

Textarea Object


Example

Modify the text content of a textarea:

document.getElementById("myTextarea").value = "tutorialpro";

Definition and Usage

The value property sets or returns the text of a textarea.

Syntax

Set the value property:

textareaObject.value = "text";

Return the value property:

textareaObject.value;

Property Values

Value Description
text Specifies the content of the text box
Property
--- --- --- --- --- ---
value Yes Yes Yes Yes Yes
❮ Jsref Statements Dom Obj Datalist ❯