Irritating Select Boxes Visible Through the Popup Divisions
At several occasions, while doing page layouts with popup divisions/ lightboxes/ Tips etc we come across situations where some Form SELECT objects happens to be under these POPUP Divisions , by design and it shows through…. YUK!!!
Well! you could easily FIX this by adjusting your Z-INDEX values appropriately for FF and IE7 . But Good Old ( pun intended) IE6 doesn’t behave as intended…. The SELECT BOX show through , even after you apply some drastically high Z-INDEX values to your PopUp Division… Bummer!!!!
There are NO FIXES for this problem , but there are , I believe, more than a few way to work-around this problem , But Im here to tell you the simplest solution that I use, which works fine for me, in most of the cases ….
“HIDE THE ROUGE SELECT BOX WHEN YOU SHOW THE POPUP”
Simply in your script snippet where you show your popup, add a piece of script to set the visibility of the SELECT Box to “Hidden”
document.getElementById(‘my_select’).style.visibilty = “hidden”;
And remember to set it back on CLOSE of your PopUp Division
document.getElementById(‘my_select’).style.visibilty = “visible”;
where “my_select” is the ID of the irritation SELECT Box
Hope this helps…
PS. There are ofcourse other options like dynamically positionining an IFRAME ( same size as you PopUp) under the Popup DIV … This works well too , but with an addition of loads of DOM Elements, SCRIPTS and Headache . I have used this solution too, and If you do need any help with this option, do let me know. Will be glad to help!
Subscribe to by Email








































