Latest

recent

HTML Select name attribute

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>


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

<select name="value">

Attribute Values

Value Description
name The name of the drop-down list
HTML Select name attribute Reviewed by 1000sourcecodes on 20:48 Rating: 5
Powered by Blogger.