I have seen many answers to questions about populating 2 drop down lists and even three drop down lists, but not 4. I might also want to go to 5, but would just like to get 4 working first. I am posting my code below. I have had success getting up to three to populate, but not the fourth. I feel that the code in between the secondGroups and thirdGroups is where I'm messed up, but it might be after the thirdGroups as well. I have tried for days to get this working and would appreciate any help. Thanks.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Step 1 -- Choose Conference</title>
</head>
<body>
<form name="register">
<tr>
<td width="12%" height="114" align="left" valign="top" rowspan="3">
<p style="margin-top: 0; margin-bottom: 0"> </td>
<td width="22%" height="114" align="left" valign="top" colspan="4" rowspan="3">
<p style="margin-top: 0; margin-bottom: 0">
</p>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Arial" size="1">Step 1 -- Choose Conference</font></p>
<p style="margin-top: 0; margin-bottom: 0">
</p>
<p style="margin-top: 0; margin-bottom: 0">
<select size="1" name="conference" onChange="conf(this.option
s.selected
Index)">
<option selected>---Select Conference---</option>
<option>The Writing Academy -- Foundations & 15 Points of Distinction</option>
<option>The Writing Academy -- Competitive Writing Games</option>
<option>The Writing Academy -- Idea Development Day</option>
<option>The Writing Academy -- Discovering the Author's Voice</option>
<option>The Writing Academy -- 63 Golden Minutes</option>
<option>The Writing Academy -- Triplets</option>
<option>The Writing Academy -- 4-Day Summer Institutes</option>
<option>Johnny Can Spell/Write</option>
<option>GRAM-MARvelous</op
tion>
<option>Words at Work - Vocabulary</option>
<option>Teaching English Phonics to the Spanish Speaker</option>
</select>
<p style="margin-top: 0; margin-bottom: 0">
</td>
<td width="39%" height="38" align="left" valign="top">
<p style="margin-top: 0; margin-bottom: 0">
<p style="margin-top: 0; margin-bottom: 0">
<font face="Arial" size="1">Step 2 -- Choose Grade Level</font><p style="margin-top: 0; margin-bottom: 0">
<select size="1" name="grade" onChange="grad(this.option
s.selected
Index)">
<option value=" " selected> </option>
<option value=" " selected>---Select Grade Level---</option>
<option value=" " selected>---Select Grade Level---</option>
<option value=" " selected>---Select Grade Level---</option>
<option value=" " selected>---Select Grade Level---</option>
<option value=" " selected>---Select Grade Level---</option>
<option value=" " selected>---Select Grade Level---</option>
<option value=" " selected>---Select Grade Level---</option>
<option value=" " selected>---Select Grade Level---</option>
<option value=" " selected>---Select Grade Level---</option>
<option value=" " selected>---Select Grade Level---</option>
<option value=" " selected>---Select Grade Level---</option>
</select><p style="margin-top: 0; margin-bottom: 0">
</td>
<td width="24%" height="114" align="left" valign="top" rowspan="3">
<p style="margin-top: 0; margin-bottom: 0"> </td>
<td width="8%" height="114" align="left" valign="top" rowspan="3">
<p style="margin-top: 0; margin-bottom: 0"> </td>
<td width="13%" height="114" align="left" valign="top" rowspan="3">
<p style="margin-top: 0; margin-bottom: 0"> </td>
</tr>
<tr>
<td width="39%" height="38" align="left" valign="top">
<p style="margin-top: 0; margin-bottom: 0">
<font face="Arial" size="1">Step 3 -- Select Day(s)</font></p>
<p style="margin-top: 0; margin-bottom: 0">
<select size="1" name="days" onChange="day(this.options
.selectedI
ndex)">
<option value=" " selected> </option>
<option value=" " selected>---Select Day(s)---</option>
<option value=" " selected>---Select Day(s)---</option>
<option value=" " selected>---Select Day(s)---</option>
<option value=" " selected>---Select Day(s)---</option>
<option value=" " selected>---Select Day(s)---</option>
<option value=" " selected>---Select Day(s)---</option>
<option value=" " selected>---Select Day(s)---</option>
<option value=" " selected>---Select Day(s)---</option>
<option value=" " selected>---Select Day(s)---</option>
<option value=" " selected>---Select Day(s)---</option>
<option value=" " selected>---Select Day(s)---</option>
</select><p style="margin-top: 0; margin-bottom: 0">
</td>
</tr>
<tr>
<td width="39%" height="38" align="left" valign="top">
<p style="margin-top: 0; margin-bottom: 0">
<font face="Arial" size="1">Step 4 -- Select Date(s)</font></p>
<p style="margin-top: 0; margin-bottom: 0">
<select size="1" name="dates" onChange="date(this.option
s.selected
Index)">
<option value=" " selected> </option>
<option value=" " selected>---Select Date(s)---</option>
<option value=" " selected>---Select Date(s)---</option>
<option value=" " selected>---Select Date(s)---</option>
<option value=" " selected>---Select Date(s)---</option>
<option value=" " selected>---Select Date(s)---</option>
<option value=" " selected>---Select Date(s)---</option>
<option value=" " selected>---Select Date(s)---</option>
<option value=" " selected>---Select Date(s)---</option>
<option value=" " selected>---Select Date(s)---</option>
<option value=" " selected>---Select Date(s)---</option>
<option value=" " selected>---Select Date(s)---</option>
</select<p style="margin-top: 0; margin-bottom: 0">
</td>
<script>
<!--
var groups=document.register.c
onference.
options.le
ngth
var group=new Array(groups)
for (i=0; i<groups; i++)
group[i]=new Array()
group[0][0]=new Option("---Select Grade Level---"," ");
group[1][0]=new Option("---Select Grade Level---"," ");
group[1][1]=new Option("PK-2","10");
group[1][2]=new Option("3-5","11");
group[1][3]=new Option("6-8","12");
group[2][0]=new Option("---Select Grade Level---"," ");
group[2][1]=new Option("2-8","13");
group[3][0]=new Option("---Select Grade Level---"," ");
group[3][1]=new Option("2-8","14");
group[4][0]=new Option("---Select Grade Level---"," ");
group[4][1]=new Option("2-8","15");
group[5][0]=new Option("---Select Grade Level---"," ");
group[5][1]=new Option("2-8","16");
group[6][0]=new Option("---Select Grade Level---"," ");
group[6][1]=new Option("6-12","17");
group[7][0]=new Option("---Select Grade Level---"," ");
group[7][1]=new Option("PK-2","18");
group[7][2]=new Option("3-8","19");
group[8][0]=new Option("---Select Grade Level---"," ");
group[8][1]=new Option("PK-2","20");
group[9][0]=new Option("---Select Grade Level---"," ");
group[9][1]=new Option("3-7","21");
group[10][0]=new Option("---Select Grade Level---"," ");
group[10][1]=new Option("2-5","22");
group[11][0]=new Option("---Select Grade Level---"," ");
group[11][1]=new Option("All Grade Levels","23");
var temp=document.register.gra
de
function conf(w){
for (m=temp.options.length-1;m
>0;m--)
temp.options[m]=null
for (i=0;i<group[w].length;i++
){
temp.options[i]=new Option(group[w][i].text,gr
oup[w][i].
value)
}
temp.options[0].selected=t
rue
grad(0)
}
var secondGroups=document.regi
ster.grade
.options.l
ength
var secondGroup=new Array(groups)
for (i=0; i<groups; i++) {
secondGroup[i]=new Array(group[i].length)
for (j=0; j<group[i].length; j++) {
secondGroup[i][j]=new Array() }}
secondGroup[0][0][0]=new Option("---Select Day(s)---"," ");
secondGroup[1][0][0]=new Option("---Select Day(s)---"," ");
secondGroup[1][1][0]=new Option("---Select Day(s)---"," ");
secondGroup[1][1][1]=new Option("Day 1 -- Foundations","24");
secondGroup[1][1][2]=new Option("Day 2 -- 15 Points of Distinction","25");
secondGroup[1][1][3]=new Option("Both Day 1 & Day 2","26");
secondGroup[1][2][0]=new Option("---Select Day(s)---"," ");
secondGroup[1][2][1]=new Option("Day 1 -- Foundations","27");
secondGroup[1][2][2]=new Option("Day 2 -- 15 Points of Distinction","28");
secondGroup[1][2][3]=new Option("Both Day 1 & Day 2","29");
secondGroup[1][3][0]=new Option("---Select Day(s)---"," ");
secondGroup[1][3][1]=new Option("Day 1 -- Foundations","30");
secondGroup[1][3][2]=new Option("Day 2 -- 15 Points of Distinction","31");
secondGroup[1][3][3]=new Option("Both Day 1 & Day 2","32");
secondGroup[2][0][0]=new Option("---Select Day(s)---"," ");
secondGroup[2][1][0]=new Option("---Select Day(s)---"," ");
secondGroup[2][1][1]=new Option("One Day Conference","33");
secondGroup[3][0][0]=new Option("---Select Day(s)---"," ");
secondGroup[3][1][0]=new Option("---Select Day(s)---"," ");
secondGroup[3][1][1]=new Option("One Day Conference","34");
secondGroup[4][0][0]=new Option("---Select Day(s)---"," ");
secondGroup[4][1][0]=new Option("---Select Day(s)---"," ");
secondGroup[4][1][1]=new Option("One Day Conference","35");
secondGroup[5][0][0]=new Option("---Select Day(s)---"," ");
secondGroup[5][1][0]=new Option("---Select Day(s)---"," ");
secondGroup[5][1][1]=new Option("One Day Conference","36");
secondGroup[6][0][0]=new Option("---Select Day(s)---"," ");
secondGroup[6][1][0]=new Option("---Select Day(s)---"," ");
secondGroup[6][1][1]=new Option("One Day Conference","37");
secondGroup[7][0][0]=new Option("---Select Day(s)---"," ");
secondGroup[7][1][0]=new Option("---Select Day(s)---"," ");
secondGroup[7][1][1]=new Option("4-Day Conference","38");
secondGroup[7][2][0]=new Option("---Select Day(s)---"," ");
secondGroup[7][2][1]=new Option("4-Day Conference","39");
secondGroup[8][0][0]=new Option("---Select Day(s)---"," ");
secondGroup[8][1][0]=new Option("---Select Day(s)---"," ");
secondGroup[8][1][1]=new Option("Day 1","40");
secondGroup[8][1][2]=new Option("Day 2","41");
secondGroup[8][1][3]=new Option("Both Day 1 & Day 2","42");
secondGroup[9][0][0]=new Option("---Select Day(s)---"," ");
secondGroup[9][1][0]=new Option("---Select Day(s)---"," ");
secondGroup[9][1][1]=new Option("Day 1","43");
secondGroup[9][1][2]=new Option("Day 2","44");
secondGroup[9][1][3]=new Option("Both Day 1 & Day 2","45");
secondGroup[10][0][0]=new Option("---Select Day(s)---"," ");
secondGroup[10][1][0]=new Option("---Select Day(s)---"," ");
secondGroup[10][1][1]=new Option("One Day Conference","46");
secondGroup[11][0][0]=new Option("---Select Day(s)---"," ");
secondGroup[11][1][0]=new Option("---Select Day(s)---"," ");
secondGroup[11][1][1]=new Option("One Day Conference","47");
var temp1=document.register.da
ys
function grad(x){
for (m=temp1.options.length-1;
m>0;m--)
temp1.options[m]=null
for (i=0;i<secondGroup[documen
t.register
.conferenc
e.options.
selectedIn
dex][x].le
ngth;i++){
temp1.options[i]=new Option(secondGroup[documen
t.register
.conferenc
e.options.
selectedIn
dex][x][i]
.text,seco
ndGroup[do
cument.reg
ister.conf
erence.opt
ions.selec
tedIndex][
x][i].valu
e)
}
temp1.options[0].selected=
true
day(0)
}
var thirdGroups=document.regis
ter.days.o
ptions.len
gth
var thirdGroup=new Array(groups)
for (i=0; i<groups; i++) {
thirdGroup[i]=new Array(group[i].length)
for (j=0; j<group[i].length; j++)
thirdGroup[i][j]=new Array(group[j].length)
for (k=0; k<group[j].length; k++) {
thirdGroup[i][j][k]=new Array() }}
thirdGroup[0][0][0][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[1][0][0][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[1][1][0][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[1][1][1][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[1][1][1][1]=new
Option("October 2, 2008"," ");
thirdGroup[1][1][1][2]=new
Option("November 6, 2008"," ");
thirdGroup[1][1][1][3]=new
Option("December 4, 2008"," ");
thirdGroup[1][1][2][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[1][1][2][1]=new
Option("October 3, 2008"," ");
thirdGroup[1][1][2][2]=new
Option("November 7, 2008"," ");
thirdGroup[1][1][2][3]=new
Option("December 5, 2008"," ");
thirdGroup[1][1][3][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[1][1][3][1]=new
Option("October 2 & 3, 2008"," ");
thirdGroup[1][1][3][2]=new
Option("November 6 & 7, 2008"," ");
thirdGroup[1][1][3][3]=new
Option("December 4 & 5, 2008"," ");
thirdGroup[1][2][0][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[1][2][1][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[1][2][1][1]=new
Option("September 22, 2008"," ");
thirdGroup[1][2][1][2]=new
Option("October 9, 2008"," ");
thirdGroup[1][2][1][3]=new
Option("October 20, 2008"," ");
thirdGroup[1][2][1][4]=new
Option("November 6, 2008"," ");
thirdGroup[1][2][1][5]=new
Option("December 4, 2008"," ");
thirdGroup[1][2][2][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[1][2][2][1]=new
Option("September 23, 2008"," ");
thirdGroup[1][2][2][2]=new
Option("October 10, 2008"," ");
thirdGroup[1][2][2][3]=new
Option("October 21, 2008"," ");
thirdGroup[1][2][2][4]=new
Option("November 7, 2008"," ");
thirdGroup[1][2][2][5]=new
Option("December 5, 2008"," ");
thirdGroup[1][2][3][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[1][2][3][1]=new
Option("September 22 & 23, 2008"," ");
thirdGroup[1][2][3][2]=new
Option("October 9 & 10, 2008"," ");
thirdGroup[1][2][3][3]=new
Option("October 20 & 21, 2008"," ");
thirdGroup[1][2][3][4]=new
Option("November 6 & 7, 2008"," ");
thirdGroup[1][2][3][5]=new
Option("December 4 & 5, 2008"," ");
thirdGroup[1][3][0][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[1][3][1][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[1][3][1][1]=new
Option("October 16, 2008"," ");
thirdGroup[1][3][1][2]=new
Option("November 13, 2008"," ");
thirdGroup[1][3][2][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[1][3][2][1]=new
Option("October 17, 2008"," ");
thirdGroup[1][3][2][2]=new
Option("November 14, 2008"," ");
thirdGroup[1][3][3][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[1][3][3][1]=new
Option("October 16 & 17, 2008"," ");
thirdGroup[1][3][3][2]=new
Option("November 13 & 14, 2008"," ");
thirdGroup[2][0][0][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[2][1][0][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[2][1][1][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[2][1][1][1]=new
Option("October 6, 2008"," ");
thirdGroup[2][1][1][2]=new
Option("November 10, 2008"," ");
thirdGroup[3][0][0][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[3][1][0][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[3][1][1][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[3][1][1][1]=new
Option("November 17, 2008"," ");
thirdGroup[4][0][0][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[4][1][0][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[4][1][1][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[4][1][1][1]=new
Option("November 18, 2008"," ");
thirdGroup[5][0][0][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[5][1][0][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[5][1][1][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[5][1][1][1]=new
Option("***Coming Soon!!***"," ");
thirdGroup[6][0][0][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[6][1][0][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[6][1][1][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[6][1][1][1]=new
Option("October 17, 2008"," ");
thirdGroup[6][1][1][2]=new
Option("November 14, 2008"," ");
thirdGroup[7][0][0][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[7][1][0][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[7][1][1][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[7][1][1][1]=new
Option("***Coming Soon!!***"," ");
thirdGroup[8][0][0][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[8][1][0][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[8][1][1][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[8][1][1][1]=new
Option("September 23, 2008"," ");
thirdGroup[8][1][2][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[8][1][2][1]=new
Option("September 24, 2008"," ");
thirdGroup[8][1][3][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[8][1][3][1]=new
Option("September 23 & 24, 2008"," ");
thirdGroup[9][0][0][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[9][1][0][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[9][1][1][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[9][1][1][1]=new
Option("October 22, 2008"," ");
thirdGroup[9][1][1][2]=new
Option("November 11, 2008"," ");
thirdGroup[9][1][2][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[9][1][2][1]=new
Option("October 23, 2008"," ");
thirdGroup[9][1][2][2]=new
Option("November 12, 2008"," ");
thirdGroup[9][1][3][0]=new
Option("---Select Date(s)---"," ");
thirdGroup[9][1][3][1]=new
Option("October 22 & 23, 2008"," ");
thirdGroup[9][1][3][2]=new
Option("November 11 & 12, 2008"," ");
thirdGroup[10][0][0][0]=ne
w Option("---Select Date(s)---"," ");
thirdGroup[10][1][0][0]=ne
w Option("---Select Date(s)---"," ");
thirdGroup[10][1][1][0]=ne
w Option("---Select Date(s)---"," ");
thirdGroup[10][1][1][1]=ne
w Option("October 24, 2008"," ");
thirdGroup[10][1][1][2]=ne
w Option("November 13, 2008"," ");
thirdGroup[11][0][0][0]=ne
w Option("---Select Date(s)---"," ");
thirdGroup[11][1][0][0]=ne
w Option("---Select Date(s)---"," ");
thirdGroup[11][1][1][0]=ne
w Option("---Select Date(s)---"," ");
thirdGroup[11][1][1][1]=ne
w Option("October 14, 2008"," ");
thirdGroup[11][1][1][2]=ne
w Option("October 15, 2008"," ");
thirdGroup[11][1][1][3]=ne
w Option("November 11, 2008"," ");
var temp2=document.register.da
tes
function day(y){
for (m=temp2.options.length-1;
m>0;m--)
temp2.options[m]=null
for (i=0;i<thirdGroup[document
.register.
conference
.options.s
electedInd
ex][y].len
gth;i++){
temp2.options[i]=new Option(thirdGroup[document
.register.
conference
.options.s
electedInd
ex][y][i].
text,third
Group[docu
ment.regis
ter.confer
ence.optio
ns.selecte
dIndex][y]
[i].value)
}
temp2.options[0].selected=
true
}
function date(z){
window.location=temp2[z].v
alue
}
//-->
</script>
</form>
</body>
Start Free Trial