- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Sun, 13 Sep 2009 08:54:11 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec In directory hutz:/tmp/cvs-serv27878 Modified Files: Overview.html Log Message: <select> examples (whatwg r3822) Index: Overview.html =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.2990 retrieving revision 1.2991 diff -u -d -r1.2990 -r1.2991 --- Overview.html 13 Sep 2009 08:29:19 -0000 1.2990 +++ Overview.html 13 Sep 2009 08:54:07 -0000 1.2991 @@ -32033,6 +32033,40 @@ <code title="dom-lfe-labels"><a href="#dom-lfe-labels">labels</a></code> attribute provides a list of the element's <code><a href="#the-label-element">label</a></code>s.</p> + </div><div class="example"> + + <p>The following example shows how a <code><a href="#the-select-element">select</a></code> element + can be used to offer the user with a set of options from which the + user can select a single option. The default option is + preselected</p> + + <pre><p> + <label for="unittype">Select unit type:</label> + <select id="unittype" name="unittype"> + <option value="1"> Miner </option> + <option value="2"> Puffer </option> + <option value="3" selected> Snipey </option> + <option value="4"> Max </option> + <option value="5"> Firebot </option> + </select> +</p></pre> + + </div><div class="example"> + + <p>Here, the user is offered a set of options from which he can + select any number. By default, all five options are selected.</p> + + <pre><p> + <label for="allowedunits">Select unit types to enable on this map:</label> + <select id="allowedunits" name="allowedunits" multiple> + <option value="1" selected> Miner </option> + <option value="2" selected> Puffer </option> + <option value="3" selected> Snipey </option> + <option value="4" selected> Max </option> + <option value="5" selected> Firebot </option> + </select> +</p></pre> + </div><h4 id="the-datalist-element"><span class="secno">4.10.7 </span>The <dfn><code>datalist</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i><dl class="element"><dt>Categories</dt> <dd><a href="#flow-content">Flow content</a>.</dd> <dd><a href="#phrasing-content">Phrasing content</a>.</dd>
Received on Sunday, 13 September 2009 08:54:21 UTC