HTML <select> name attribute
HTML <select> tag
Example
A drop-down list with a name attribute:
<select name="carlist">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select> |
Try it yourself!
|
Definition and Usage
The name attribute specifies the name for a drop-down list.
The name attribute is used to reference elements in a JavaScript, or to
reference form data after a form is submitted.
Browser Support

The name attribute is supported in all major browsers.
Syntax
Attribute Values
Value |
Description |
name |
The name of the drop-down list |
HTML <select> tag
 |

|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|