SOURCE: onChange
Results
SCRIPT
var dogs = new Array("poodle","beagle","greyhound");
var fish = new Array("trout", "mackerel", "bass");
var birds = new Array("robin", "hummingbird", "crow");
function swapOptions(ArrayName){
var ExSelect = document.theForm.examples;
var theArray = eval(ArrayName);
setOptionText(ExSelect, theArray);
}
function setOptionText(theSelect, theArray){
for (loop = 0; loop < theSelect.options.length; loop++){
theSelect.options[loop].text = theArray[loop];
}
}