Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why do <select> boxes appear over my drop down menu?

Menus

Why do <select> boxes appear over my drop down menu?

by  RISTMO  Posted    (Edited  )
There is an IE only problem that often occurs when menus try to popup over <select> boxes. The reason why is that <select> boxes are not like normal HTML elements. Instead, they act as separate windows. To make menus appear over them, you will have to make the <select>s invisible when the menu is dropped down. You can do this by adding this to your function that pops-up the menu:

document.getElementById('select_box_id').style.visibility='hidden';

and then this to your function that closes it:

document.getElementById('select_box_id').style.visibility='';

Rick Morgan
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top