Tengo 5 listas desplegables en un Formulario, debajo del cual tengo elementos DIV que requieren la entrada del usuario. Muestro el primer DIV para la primera lista desplegable y oculto todas las demás formas usando style = "display: none;".Javascript para mostrar el div oculto cuando se selecciona la opción de la lista desplegable
Estoy buscando un Javascript que muestre el segundo DIV cuando selecciono cualquier opción de la 2da lista desplegable.
Cualquier ayuda sería apreciada.
Gracias de antemano, Ryan Smith
<tr>
<td>Destination 1</td><td>Destination 2</td><td>Destination 3</td><td>Destination 4</td><td>Destination 5</td>
</tr>
<tr>
<td>
<SELECT NAME=drop1 style="width:150px;">
<OPTION VALUE=0>
<?=$optionsdest?>
</SELECT>
</td>
<td>
<SELECT NAME=drop2 style="width:150px;" onChange="javascript to show DIV leg1b">
<OPTION VALUE=1><?=$optionsdest?>
</SELECT>
</td>
<td>
<SELECT NAME=drop3 style="width:150px;" onChange="javascript to show DIV leg1c">
<OPTION VALUE=0>0
<OPTION VALUE=1>1
</SELECT>
</td>
<td>
<SELECT NAME=drop4 style="width:150px;" onChange="javascript to show DIV leg1d">
<OPTION VALUE=0>
<?=$optionsdest?>
</SELECT>
</td>
<td>
<SELECT NAME=drop5 style="width:150px;" onChange="javascript to show DIV leg1e">
<OPTION VALUE=0>
<?=$optionsdest?>
</SELECT>
</td>
</tr>
<tr>
<td>
Arrive Drop 1
<br>
<input type="date" id="arrivedatetime1" name="arrivedatetime1" value=<?PHP echo $arrivedate ?>>
<br>
<SELECT NAME=arrivetime1 style="width:150px;">
<OPTION VALUE=0>
<?=$optionstime?>
</SELECT>
<br>
Depart Drop 1
<br>
<input type="date" id="departdatetime1" name="departdatetime1" value=<?PHP echo $departdate ?>>
<br>
<SELECT NAME=departtime1 style="width:150px;">
<OPTION VALUE=0>
<?=$optionstime?>
</SELECT>
</td>
<td>
<div id='legb1' style="display: none;">
Arrive Drop 2
<br>
<input type="date" id="arrivedatetime1" name="arrivedatetime1" value=<?PHP echo $arrivedate ?>>
<br>
<SELECT NAME=arrivetime1 style="width:150px;">
<OPTION VALUE=0>
<?=$optionstime?>
</SELECT>
<br>
Depart Drop 2
<br>
<input type="date" id="departdatetime1" name="departdatetime1" value=<?PHP echo $departdate ?>>
<br>
<SELECT NAME=departtime1 style="width:150px;">
<OPTION VALUE=0>
<?=$optionstime?>
</SELECT>
</div>
</td>
<td>
<div id='legc1' style="display: none;">
Arrive Drop 3
<br>
<input type="date" id="arrivedatetime1" name="arrivedatetime1" value=<?PHP echo $arrivedate ?>>
<br>
<SELECT NAME=arrivetime1 style="width:150px;">
<OPTION VALUE=0>
<?=$optionstime?>
</SELECT>
<br>
Depart Drop 3
<br>
<input type="date" id="departdatetime1" name="departdatetime1" value=<?PHP echo $departdate ?>>
<br>
<SELECT NAME=departtime1 style="width:150px;">
<OPTION VALUE=0>
<?=$optionstime?>
</SELECT>
</div>
</td>
<td>
<div id='legd1' style="display: none;">
Arrive Drop 4
<br>
<input type="date" id="arrivedatetime1" name="arrivedatetime1" value=<?PHP echo $arrivedate ?>>
<br>
<SELECT NAME=arrivetime1 style="width:150px;">
<OPTION VALUE=0>
<?=$optionstime?>
</SELECT>
<br>
Depart Drop 4
<br>
<input type="date" id="departdatetime1" name="departdatetime1" value=<?PHP echo $departdate ?>>
<br>
<SELECT NAME=departtime1 style="width:150px;">
<OPTION VALUE=0>
<?=$optionstime?>
</SELECT>
</div>
</td>
<td>
<div id='lege1' style="display: none;">
Arrive Drop 5
<br>
<input type="date" id="arrivedatetime1" name="arrivedatetime1" value=<?PHP echo $arrivedate ?>>
<br>
<SELECT NAME=arrivetime1 style="width:150px;">
<OPTION VALUE=0>
<?=$optionstime?>
</SELECT>
<br>
Depart Drop 5
<br>
<input type="date" id="departdatetime1" name="departdatetime1" value=<?PHP echo $departdate ?>>
<br>
<SELECT NAME=departtime1 style="width:150px;">
<OPTION VALUE=0>
<?=$optionstime?>
</SELECT>
</td>
</tr>