Forum Moderators: phranque
<form method="post">
<td><select name="FundType">
<option></option>
<option value="unallocated">Unallocated Fund</option>
<option value="allocated">Allocated Fund</option>
</select> </td>
</form>
I need to request the FundType value and if it's allocated then show the drop down below. This all happens on the same page. Anyone have any ideas for me?
<td><select name="Name">
<option></option>
<option value="test1">test1</option>
<option value="test2">test2</option>
</select> </td>
Please help!
Not sure on how to do it with cold fusion. But is this the effect you are trying to achieve?
<form method="post">
<table>
<tr>
<td>
<select name="FundType" onchange="getElementById('secondSelect').style.display=''">
<option></option>
<option value="unallocated">Unallocated Fund</option>
<option value="allocated">Allocated Fund</option>
</select> </td>
<td><select name="secondSelect" style="display='none'">
<option></option>
<option value="test1">test1</option>
<option value="test2">test2</option>
</select>
</td>
</tr>
</table>
</form>
-George
Would this do you?
<html>
<body>
<script language=javascript>
function checkWhat(what){
if(what == 'allocated'){
document.getElementById('secondSelect').style.display=''
}
}
</script>
<form method="post">
<table>
<tr>
<td>
<select name="FundType" onchange="checkWhat(this.value)">
<option></option>
<option value="unallocated">Unallocated Fund</option>
<option value="allocated">Allocated Fund</option>
</select> </td>
<td><select name="secondSelect" style="display='none'">
<option></option>
<option value="test1">test1</option>
<option value="test2">test2</option>
</select>
</td>
</tr>
</table>
</form>
</body>
</html>
-George