W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2004

[whatwg] Re: several messages

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 6 Jul 2004 13:13:50 +0000 (UTC)
Message-ID: <Pine.LNX.4.58.0407061313050.23916@dhalsim.dreamhost.com>
On Thu, 1 Jul 2004, voracity wrote:
>
> I'd like the currently selected option to be exposed. Thus if a person
> has chosen (or typed) 'Choice 2', you could use 'combo1.selectedOption'
> to get the chosen element (i.e. <option value="Choice 2"/>). If the user
> has typed something new (or hasn't type anything at all), then
> 'combo1.selectedOption' would be null.

Agreed.


> Now, if datalists have similar properties to select's in the DOM (i.e. a
> .selectedIndex property, a .options array, etc.) then that would
> probably be good enough.

selectedIndex makes no sense since you can use a datalist from multiple
inputs. However, I agree that options would be useful.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 6 July 2004 06:13:50 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:35 UTC