- From: Julian Guy <contact@julianguy.co.uk>
- Date: Mon, 22 Oct 2007 12:07:30 +0100
- Cc: "public-html@w3.org" <public-html@w3.org>
- Message-ID: <395dbd670710220407w3bb49517p79c9db1ab40cba20@mail.gmail.com>
I get this request very frequently too. A "defaulttext" attribute would possibly be useful. One drawback being that the default text and default value would then be the same. For instance at the moment: <select> <option value="0">Please Choose</option> <option value="1">Option 1</option> .... etc ..... </select> The default value can be check serverside by looking for the value "0". If a "defaulttext" or "embededlabel" attribute were introduced, what actual value would be returned by the element when the form was submitted without an option being selected? It wouldn't do to have the actual string content of the "defaulttext" passed as the value. Julian On 22/10/2007, Olivier GENDRIN <olivier.gendrin@gmail.com> wrote: > > > Hello list ! > > On some projects, clients ask me to insert inside a select an false > option that indicates the function of the form element (ex: > http://surveylink.yahoo.com/wix/p1484643.aspx, item 4 has an option > 'please select you answer). > > When I have to do that in an input@text, I can use @value as default text. > > Couldn't we have an new attribute for the select that will be > displayed if no option is selected ? No idea for her name but > embededlabel. I'll search a better one. > > -- > Olivier G. > http://www.lespacedunmatin.info/blog/ > > -- Julian Guy Web Development 13 Montgomery Street Victoria Park Bristol BS3 4SE +44 (0) 7929 957271 contact@julianguy.co.uk
Received on Tuesday, 23 October 2007 02:39:10 UTC