For backward compatibility in IE 6 and earlier where select elements show through all overlaying content, Lightbox hides all selects when opened, and reveals all selects when closed. This is done via their visibility style property.
What you are observing shouldn't be happening though because their container is still visibility hidden, and visibility is supposed to be inherited. But obviously it is happening. So here is what I suggest, in lightbox.js find this code:
Code:
function showSelectBoxes(){
var selects = document.getElementsByTagName("select");
for (i = 0; i != selects.length; i++) {
selects[i].style.visibility = "visible";
}
}
Change it to:
Code:
function showSelectBoxes(){
var selects = document.getElementsByTagName("select");
for (i = 0; i != selects.length; i++) {
selects[i].style.visibility = "";
}
}
That will, instead of setting the visibility property explicitly to visible, allow it to revert to whatever it was, which in this case was nothing, so should work out well. It also should have no adverse effect upon any other select(s) that you have on the page. If not, we can take more elaborate measures.
Bookmarks