Group select option item combo box

Group select option item combo box

E' possibile raggruppare gli elementi di un menu a tendina facendo in modo che appaiano alcuni elementi da titolo, ma non selezionabili.
Questa particolarità è chiamata option group

<html>
<head>
<title>TITLE</title>
<link rel=StyleSheet href=”/css/stile.css” type=”text/css”>
</head>
<body>
<P>Scegli la Città:
<SELECT NAME=”selectCitta”>
<OPTGROUP LABEL=”Lazio”>
<OPTION>Roma</OPTION>
</OPTGROUP>
<OPTGROUP LABEL=”Campania”>
<OPTION>Napoli</OPTION>
<OPTION>Caserta</OPTION>
</OPTGROUP>
<OPTGROUP LABEL=”Lombardia”>
<OPTION>Milano</OPTION>
<OPTION>Pavia</OPTION>
</OPTGROUP>
<OPTION>Non ricordo..</OPTION>
<OPTION>Altra opzione fuori group</OPTION>
</SELECT>
</P>
</body>
</html>

Download group_select_otpion.zip (420,00 bytes)

Leave a Reply

Your email address will not be published. Required fields are marked *

Are you human? Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.