<select id="course">
<option value="1">course 1 - $800/option>
<option value="2">course 1 - $900</option>
<option value="3">course 2 - $900</option>
<option value="4">course 2 - $1000</option>
</select>
<select id="dates">
<option value="5/10-5/24">5/10 - 5/24</option>
<option value="5/14-5/28">5/14 - 5/28</option>
<option value="5/21-6/4">5/21 - 6/4</option>
</select>
<script type="text/javascript">
var course=document.getElementById('course');
var dates=document.getElementById('dates');
course.onchange=function(){
switch(course.value){
case 1: dates.selectedIndex=0;break;
case 2: dates.selectedIndex=2;break;
case 3: dates.selectedIndex=1;break;
case 4: dates.selectedIndex=0;break;
}
}
|