![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.javascript archiveRe: Replace all values in a Listbox
From: Thomas 'PointedEars' Lahn <PointedEars@web.de>
Date: Sat Apr 29 2006 - 01:39:08 CEST
IanONet@gmail.com wrote:
> I have used
Only that there is no such built-in method. Which is why this information
You are about the 4711th person to ask this here. Search the archives.
- Deleting an option:
delete selectRef.options[index];
If that does not work:
- Shortcut for deleting all options: selectRef.options.length = 0;
- Replace option value:
selectRef.options[index].value = "...";
- Add new option:
selectRef.options[selectRef.options.length] = new Option(...);
> and how would you (how should I ) store the data that
This has been asked before, too. One possibility is:
var data = {
sel1Value2: [
and then:
<script type="text/javascript">
var
The data is best generated server-side, by a server-side fallback to handle
PointedEars
-- There are two possibilities: Either we are alone in the universe or we are not. Both are equally terrifying. -- Arthur C. ClarkeReceived on Mon May 1 05:26:22 2006 |