Javascript to detect whether the dropdown of a select element is visible

后端 未结 7 1005
甜味超标
甜味超标 2020-12-19 08:39

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:

  • Watching for click events, where
7条回答
  •  温柔的废话
    2020-12-19 09:08

    here is how I would preferred to do it. focus and blur is where it is at.

    
        
            SandBox
        
        
            
            
    some text or whatever goes here.

提交回复
热议问题