dreamclutch
Programmer
When someone selecs 'Pets' from the main select list below I want the 'petages' select list to appear dynamically and replace the 'ages' select list. I've been having trouble with the coding. Thanks...
//main select list
<select name="whatareyou" id="whatareyou">
<option selected="selected" value="A">Select One...</option>
<option value="1">Males</option>
<option value="2">Females</option>
<option value="3">Pets</option>
<option value="4">Bands</option>
</select>
//select list 1
<select name="ages" id="whatareyou">
<option selected="selected" value="0">[Any Age]</option>
<option value="18-25">18-25</option>
<option value="25-30">25-30</option>
<option value="30-35">30-35</option>
<option value="35-40">35-40</option>
<option value="40-45">40-45</option>
<option value="45-50">45-50</option>
<option value="50-55">50-55</option>
<option value="55-60">55-60</option>
<option value="60-65">60-65</option>
<option value="65-70">65-70</option>
<option value="70-75">70-75</option>
<option value="75-80">75-80</option>
<option value="80-85">80-85</option>
<option value="85-90">85-90</option>
<option value="90-95">90-95</option>
</select>
//select list 2
<select name="petages" id="whatareyou">
<option selected="selected" value="0">[Any Age]</option>
<option value="1-5">1-5</option>
<option value="5-10">5-10</option>
<option value="10-15">10-15</option>
<option value="15-20">15-20</option>
<option value="20-25">20-25</option>
<option value="25-30">25-30</option>
<option value="35-40">35-40</option>
<option value="40-45">40-45</option>
<option value="45-50">45-50</option>
</select>
//main select list
<select name="whatareyou" id="whatareyou">
<option selected="selected" value="A">Select One...</option>
<option value="1">Males</option>
<option value="2">Females</option>
<option value="3">Pets</option>
<option value="4">Bands</option>
</select>
//select list 1
<select name="ages" id="whatareyou">
<option selected="selected" value="0">[Any Age]</option>
<option value="18-25">18-25</option>
<option value="25-30">25-30</option>
<option value="30-35">30-35</option>
<option value="35-40">35-40</option>
<option value="40-45">40-45</option>
<option value="45-50">45-50</option>
<option value="50-55">50-55</option>
<option value="55-60">55-60</option>
<option value="60-65">60-65</option>
<option value="65-70">65-70</option>
<option value="70-75">70-75</option>
<option value="75-80">75-80</option>
<option value="80-85">80-85</option>
<option value="85-90">85-90</option>
<option value="90-95">90-95</option>
</select>
//select list 2
<select name="petages" id="whatareyou">
<option selected="selected" value="0">[Any Age]</option>
<option value="1-5">1-5</option>
<option value="5-10">5-10</option>
<option value="10-15">10-15</option>
<option value="15-20">15-20</option>
<option value="20-25">20-25</option>
<option value="25-30">25-30</option>
<option value="35-40">35-40</option>
<option value="40-45">40-45</option>
<option value="45-50">45-50</option>
</select>