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.

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From "Jukka K. Korpela" <jkorpela@cs.tut.fi>
Newsgroups comp.lang.javascript
Subject Re: Add an item to an Options List.
Date Mon, 17 Oct 2011 22:59:38 +0300
Organization A noiseless patient Spider
Lines 18
Message-ID <j7i1fc$7or$1@dont-email.me> (permalink)
References <83fd624a-0272-4f5c-a11f-f526fc3c563c@v38g2000yqf.googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Mon, 17 Oct 2011 19:59:40 +0000 (UTC)
Injection-Info mx04.eternal-september.org; posting-host="ngroV0xYIIv0dzjhyZhv5A"; logging-data="7963"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19AtYNej4ixlYwLFAmsGUT6"
User-Agent Mozilla/5.0 (Windows NT 6.1; rv:8.0) Gecko/20111012 Thunderbird/8.0
In-Reply-To <83fd624a-0272-4f5c-a11f-f526fc3c563c@v38g2000yqf.googlegroups.com>
X-Antivirus-Status Clean
X-Antivirus avast! (VPS 111017-0, 17.10.2011), Outbound message
Cancel-Lock sha1:ch0ae11ry932vQVvTzwqlov81dk=
Xref x330-a1.tempe.blueboxinc.net comp.lang.javascript:7514

Show key headers only | 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