'select' Example : select « HTML Tag Reference « HTML CSS Reference






'select' Example

    
<html>
<head>
<title>select element example</title>
</head>
<body>
 <form>
    <select name="select1">
     <optgroup label="First Group">
        <option>First item in first group </option>
        <option>Second item in first group </option>
        <option>Third item in first group </option>
     </optgroup>
     <optgroup label="Second Group">
        <option>First item in second group </option>
        <option>Second item in second group </option>
        <option>Third item in second group </option>
     </optgroup> 
     </select>
 </form>
</body>
</html>

    
      
      








Related examples in the same category

1.'select' Syntax and Note
2.'select' HTML Attributes
3.'select' Event Handlers
4.'select' CSS Attributes and JavaScript Style Properties
5.'select' Microsoft Behaviors
6.'select' JavaScript Properties
7.'select' JavaScript Methods
8.'select' JavaScript Collections
9.'select' JavaScript Objects