- From: Ian Hickson <ian@hixie.ch>
- Date: Tue, 6 Jul 2004 13:13:50 +0000 (UTC)
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