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:
In jQuery, to test if something is visible:
$('something').css('display')
This will return something like 'block', 'inline', or 'none' (if element is not displayed). This is simply a representation of the CSS 'display' attribute.