W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2010

[whatwg] select element should have a required attribute

From: Mike Wilcox <mike@mikewilcox.net>
Date: Tue, 10 Aug 2010 13:12:44 -0500
Message-ID: <B2603568-9817-4363-B6BF-4C0F8E9205E5@mikewilcox.net>
This seems like the ideal situation to use a placeholder attribute:

<select required="true" placeholder="Select an item...">
    <option value="Foo"> Foo </option>
    <option value="Bar"> Bar </option>
    <option value=""> None </option>

Mike Wilcox
mike at mikewilcox.net
Received on Tuesday, 10 August 2010 11:12:44 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:59 UTC