Code:
function setMenu2(whichtype) {
var xarray=rhythmselection[whichtype];
x=xarray.length;
for(i=0;i<x;i++) {
document.myform.menu2.options[i] = new Option((xarray[i]),(xarray[i].replace(/\s+/g,'')));}
}
switch(selectValue){
case rhythmtype[0]:setMenu2(0);XMLFolder=rhythmtype[0]+"/";break;
case rhythmtype[1]:setMenu2(1);XMLFolder=rhythmtype[1]+"/";break;
case rhythmtype[2]:setMenu2(2);XMLFolder=rhythmtype[2]+"/";break;
case rhythmtype[3]:setMenu2(3);XMLFolder=rhythmtype[3]+"/";break;
case rhythmtype[4]:setMenu2(4);XMLFolder=rhythmtype[4]+"/";break;
case rhythmtype[5]:setMenu2(5);XMLFolder=rhythmtype[5]+"/";break;
case rhythmtype[6]:setMenu2(6);XMLFolder=rhythmtype[6]+"/";break;}
thats what I use to change a second select, so I think the main line is
Code:
document.myform.menu2.options[i] = new Option((xarray[i]),(xarray[i].replace(/\s+/g,'')));}
which should be able to be change for your needs. I hope it helps
Bookmarks