I would like to hide all selects on a page when my <DIV> is visible.<BR><BR>Is there a way to set the <style> for <select> to 'hidden' when 'rightclick'?
Depending on browser coverage required, you could use document.getElementsByTagName() to return all "SELECT" objects...<BR><BR>Then loop through and set their visibility accordingly.<BR><BR>As for the right-click, this also depends on the browser. If you're coding for MSIE, you could use the body "onContextMenu" event handler...<BR><BR>Craig.
...would be to put all the <SELECT>s into a <DIV> and then simply hide the entire <DIV>.<BR><BR>Whether or not that works depends on how your page is laid out, of course. But if it does work for you, it would simplify the JS code a lot.<BR><BR>