Replace all values in a Listbox
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Replace all values in a Listbox

From: <IanONet@gmail.com>
Date: Fri Apr 28 2006 - 20:17:28 CEST

I have used
onChange="ReplaceValues(this.options[this.selectedIndex].value)" to
change several textbox values when a user makes a selection from a
Select List.

Now I have the requirement to replace all the values in another Select
List when a selection is made on the first Select List.

There are two questions: What is the Javascript syntax for deleting and
replacing option values in a Select List and how would you (how should
I ) store the data that I will be using to repopulate an existing
Select List.

Thanks,
IanO
Received on Mon May 1 05:25:57 2006