K
kat
Hi,
I am a java newbie and and am wondering why this function that works
in Firefox by showing & hiding select lists, does not work in ie.
Here is my code, anysuggestions would be greatly appreciated.
function showRegion(state) {
statereg=state+'region';
//element1.style.display = 'none';
blankregion = document.getElementById('blankregion');
blankregion.style.display = 'none';
var elementArray=new Array();
var regionArray=new
Array("ACTregion","NSWregion","NTregion","QLDregion","SAregion","TASregion","VICregion","WAregion");
for(var i = 0; i < 8; ++i) {
elementArray = document.getElementById(regionArray);
if(statereg==regionArray){
//delete regionArray;
elementArray.style.display = 'block';
}else{
//hidden = document.getElementById(regionArray);
elementArray.style.display = 'none';
}
}
}
I am a java newbie and and am wondering why this function that works
in Firefox by showing & hiding select lists, does not work in ie.
Here is my code, anysuggestions would be greatly appreciated.
function showRegion(state) {
statereg=state+'region';
//element1.style.display = 'none';
blankregion = document.getElementById('blankregion');
blankregion.style.display = 'none';
var elementArray=new Array();
var regionArray=new
Array("ACTregion","NSWregion","NTregion","QLDregion","SAregion","TASregion","VICregion","WAregion");
for(var i = 0; i < 8; ++i) {
elementArray = document.getElementById(regionArray);
if(statereg==regionArray){
//delete regionArray;
elementArray.style.display = 'block';
}else{
//hidden = document.getElementById(regionArray);
elementArray.style.display = 'none';
}
}
}