Hi all,
I wrote a little script to determine what item had been selected in a list and it worked fine in firefox. When I tried it in ie it fails. Here is the script.
It is suppose to take the users input from one select list and activate some other select list depending on the option selected
function getSelected(){
var temp_selected = typeList.options[typeList.selectedIndex].text;
if(temp_selected == "FRUIT")
document.getElementById("fruitList").disabled=false;
I get an error about typeList being undefined.
Here is the code in the body...
<SELECT NAME="frmType" id="typeList" onChange="getSelected()">
<OPTION value="FRUIT">
FRUIT <OPTION value="VEGGIE">VEGGIE
<OPTION value="MEAT">MEAT
</SELECT>
while you are looking at it, i have another issue that I don't even know how to start to tackle. I would like to 'roll back' or set other drop down list as the first list is changed.
In other words, if I select fruit then the fruit menu activates and I can select any fruit but if I go back to the typeList and select VEGGIE, I want to reset the value in fruitlist to N/A and deactivate it.
While that would be nice to do, I will be happy if someone can point out the fix for ie to me and explain why. I don't work with ie normally
Thnaks