Fieldset name
Attribute
Example
Return the value of the name attribute of a fieldset:
x Output result is:
Definition and Usage
The name attribute sets or returns the value of the name attribute of a fieldset.
The name attribute is used to reference form data after a form is submitted, or to reference the element in JavaScript.
Note: Only form elements with a name attribute will have their values passed when submitting a form.
Browser Support
All major browsers support the name attribute except Internet Explorer and Safari.
Note: Opera 12 and earlier versions do not support the name attribute.
Syntax
Return the name attribute:
Set the name attribute:
Attribute Values
Value | Description |
---|---|
name | Specifies the name of the fieldset. |
Technical Details
| Return Value: | String, representing the name of the fieldset. | | --- | --- |
More Examples
Example
Change the value of the name attribute of a fieldset:
Related Articles
HTML Reference: HTML <fieldset> name Attribute