Hi, I have a listbox that has 2 values Current Images and New Images. I want to be able to have a textbox show on the page when New Images is selected and have it disapear when the other is selected.
I know this is javascript and i know basically how to do it but i dont know how to get a textbox to show or hide. Here's what i have.
<select name="select" onchange="GetValue(list)">
<option selected>Current Images</option>
<option>New Images</option>
</select></td>
<script language="javascript">
function GetValue(aList){
var ListValue = aList.options[aList.selectedindex].text
If (ListValue = "New Image"){
<br> show text box
}else{
hide text box
}
}
</script>
Any help is appreciated!😃