i got this simmple function, It stays on onChange on select and on
change it hides all objects with ID equal to select name plus the
optionvalue. It works perfectly in Opera and FF, but IE crashes because
says that options object is null
the problem is in for (optionId in what.options)
It seems that IE does NOT return the list of options, but only some
other objects: language scrollheight, istextedit, currentstyle,
document, and onmouseup
Please can you help me how can I go throuth that cycle? I need to get
the values of all options in select. Thank you
function showHide (what) {
selectedId=what .options.select edIndex;
selectedValue=w hat.options[selectedId].value;
selectedObject = document.getEle mentById(what.n ame+selectedVal ue);
selectedObject. className="";
for (optionId in what.options)
{
optionValue=wha t.options[optionId].value;
if (optionValue) {
optionObject = document.getEle mentById(what.n ame+optionValue );
if (optionId!=sele ctedId) {
optionObject.cl assName="hidden ";
}
}
}
}