This is a known bug/feature of IE. What generally is done is (in IE only) to hide the select while whatever it is that you want to cover it is visible. To that end, I have modified your example in such a way that it should be able to be used as a template for all situations like this in your final markup. For hiding more than one select per overlapping content, see note* an the end of this post. I added this function at the top of the script:
Code:
function hideShowSelect(){
if (document.getElementById&&document.documentElement.filters){
var args=arguments;
for (var i_tem = 0; i_tem < args.length; i_tem++)
if (document.getElementById(args[i_tem]).style.visibility=='')
document.getElementById(args[i_tem]).style.visibility='hidden';
else
document.getElementById(args[i_tem]).style.visibility='';
}
}
I modified both the 'close' link (addition red):
Code:
<a href="javascript:hideShowSelect('someList');overlayclose('subContent');">Close</a>
and the 'Show Search Popup' link:
Code:
<a href="#" onClick="hideShowSelect('someList');return overlay(this, 'subContent');">Show Search Popup</a>
That's it.
*Note: If you need to hide more than one select (or any other element(s) for which you have an id assigned) just add the other id(s) into both calls to the 'hideShowSelect' function, ex:
Code:
hideShowSelect('someList', 'anotherList', 'yetAnotherList')
Bookmarks