how can i check a div in a hidden div ... if visible or not?
HTML
-
You could check the display property of the css:
if ($("#two_child").css("display") != "none") {
//...
}
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:
var $child = $("#two_child");
if ($child.css("display") != "none" && $child.css("visibility") != "hidden") {
//...
}