[whatwg] select element should have a required attribute

Mike Wilcox mike at mikewilcox.net
Tue Aug 10 11:12:44 PDT 2010


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>
</select> 

Mike Wilcox
http://clubajax.org
mike at mikewilcox.net



More information about the whatwg mailing list