Skip to content

Instantly share code, notes, and snippets.

@gunnarbittersmann
Last active August 29, 2015 14:19
Show Gist options
  • Select an option

  • Save gunnarbittersmann/5f3c15a1adfa046b9d8e to your computer and use it in GitHub Desktop.

Select an option

Save gunnarbittersmann/5f3c15a1adfa046b9d8e to your computer and use it in GitHub Desktop.
optgroup
/**
* optgroup
*/
<select name="month">
<optgroup label="Spring">
<option>March</option>
<option>April</option>
<option>May</option>
</optgroup>
<optgroup label="Summer">
<option>June</option>
<option>July</option>
<option>August</option>
</optgroup >
<optgroup label="Fall">
<option>September</option>
<option>October</option>
<option>November</option>
</optgroup>
<optgroup label="Winter">
<option>December</option>
<option>January</option>
<option>February</option>
</optgroup>
</select>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment