Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #7514

Re: Add an item to an Options List.

From "Jukka K. Korpela" <jkorpela@cs.tut.fi>
Newsgroups comp.lang.javascript
Subject Re: Add an item to an Options List.
Date 2011-10-17 22:59 +0300
Organization A noiseless patient Spider
Message-ID <j7i1fc$7or$1@dont-email.me> (permalink)
References <83fd624a-0272-4f5c-a11f-f526fc3c563c@v38g2000yqf.googlegroups.com>

Show all headers | View raw


17.10.2011 22:00, bruce wrote:

> When using a combobox, I want to add a new item to the dropdown box
> but typing the item in the display box. I can do this with Java. Can I
> do it with JavaScript?

It depends on what you mean by "the display box" and by "typing the 
item" in it - the latter expression is now homeless, maybe you meant to 
write "by" instead of "but".

It's also quite possible that you really mean something different from 
what you write. What would it help to add an item to an "Options List" 
(which probably means the collection of <option> elements inside a 
<select> element) that way? If you wish to allow free text input, why 
don't you just do that, with <input type=text>?

-- 
Yucca, http://www.cs.tut.fi/~jkorpela/

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Add an item to an Options List. bruce <bruceaj@bellsouth.net> - 2011-10-17 12:00 -0700
  Re: Add an item to an Options List. "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2011-10-17 22:59 +0300
    Re: Add an item to an Options List. bruce <bruceaj@bellsouth.net> - 2011-10-17 21:19 -0700
  Re: Add an item to an Options List. Scott Sauyet <scott.sauyet@gmail.com> - 2011-10-17 14:03 -0700
    Re: Add an item to an Options List. bruce <bruceaj@bellsouth.net> - 2011-10-17 21:13 -0700

csiph-web