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 : Get the name of a text area
The name property sets or returns the value of the name attribute of a text area.
The name attribute is used to reference elements in a JavaScript, or to reference form data after a form is submitted.
Property | |||||
---|---|---|---|---|---|
name | Yes | Yes | Yes | Yes | Yes |
Return the name property:
Set the name property:
Value | Description |
---|---|
text | Specifies the name of the text area |
Return Value: | A String, representing the name of the text area |
---|
Change the name of a text area:
document.getElementById("myTextarea").name = "newTxtName";
HTML reference: HTML <textarea> name attribute
❮ Textarea Object