JoakimNorlinder
Programmer
Hello!
I have a strange problem that i don't understand.
I'm using a chained-select function that i have found here:
I have modified it so when I first enter the page the function will set the element that been selected previously to selected. I've done that by adding this line:
sel2[pos].selected='selected';
where pos is the position in the selectbox. The problem is that it works perfectly in mozilla and Opera but not in IE. Whats really strange is that if I add an alert just above the sel2[pos].selected=true; it will work.
like this:
if (is_ie5up){
alert("Hello");
}
sel2[pos].selected='selected';
But it's not so nice to see this every time you enter the page
Would apreciate if anyone can help me.
/Jocke
I have a strange problem that i don't understand.
I'm using a chained-select function that i have found here:
I have modified it so when I first enter the page the function will set the element that been selected previously to selected. I've done that by adding this line:
sel2[pos].selected='selected';
where pos is the position in the selectbox. The problem is that it works perfectly in mozilla and Opera but not in IE. Whats really strange is that if I add an alert just above the sel2[pos].selected=true; it will work.
like this:
if (is_ie5up){
alert("Hello");
}
sel2[pos].selected='selected';
But it's not so nice to see this every time you enter the page
Would apreciate if anyone can help me.
/Jocke