I posted this in the asp forum but I was told this would be better posted here
I am trying to have a listbox either visible or invisible based on wether another listbox value contains the letter "d", I have tried to write the following function without success and wondered if someone would take a look and perhaps steer me in the right direction
I then call the function like this
Regards
Paul
I am trying to have a listbox either visible or invisible based on wether another listbox value contains the letter "d", I have tried to write the following function without success and wondered if someone would take a look and perhaps steer me in the right direction
Code:
<script language="javascript">
function ToggleListBoxDisplay(){
var lstFlute=document.getElementById("lstFlute")
if Right(lstFlute.value= "d")
lstMiddle.visible = true;
else
lstMiddle.visible = false;
}
</script>
I then call the function like this
Code:
onChange="ToggleListBoxDisplay()"
Paul