HTML/CSS/Form Tags/optgroup
Версия от 09:21, 26 мая 2010; (обсуждение)
"optgroup" creates multiple options within a "select" element list
<html>
<head>
<title>option element example</title>
</head>
<body>
<form name="form1" method="post" action="youractionscript.asp">
<p>
<span class="example">
<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>
<optgroup label="Group 3">
<option>First item in Group 3</option>
<option>Second item in Group 3</option>
<option>Third item in Group 3</option>
</optgroup>
</select>
</span>
</p>
</form>
</body>
</html>