Textarea type attribute
Definition and Usage
type
The property returns what type of form element the text area is.
For the Textarea object, this will always return "textarea
".
Example
Find out what type of form element the textarea element belongs to:
var x = document.getElementById("myTextarea").type;
Syntax
textareaObject.type
Technical Details
Return Value: | String, the form element type of text area. |
---|
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |