how can i check a div in a hidden div … if visible or not?
HTML
<div style="display:none;">
<div id="two_child"></div>
<div id="three_child" style="display:none"></div>
</div>
JS
if($('#two_child').is(':visible'))
{
alert('true');
}
This will not work.
Any ideas`?
Thanks in advance!
Peter
You could check the
displayproperty of the css:As Gaby points out in the comments, this would not work if your elements are being hidden using
visibility, so you may want to extend it to: