I have a select element in a form, and I want to display something only if the dropdown is not visible. Things I have tried:
Keep track of the state using a JavaScript varialbe. We'll call it "openX".
onfocus="openX=true" onblur="openX=false" onchange="openX=false"