Change the contents of a text area:
The value property sets or returns the contents of a text area.
Note: The value of a text area is the text between the <textarea> and </textarea> tags.
The value property is supported in all major browsers.
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:
The result of x will be: