<div id="divFather" style="display: none;">
</div>
<div id="divSon">
</div>
How to find whether the div is hidden or visible?
Solution that works is below:
var isFatherDivVisble = $("#divFather").is(":visible");
//returns false
var isSonDivVisble = $("#divSon").is(":visible");
//returns true
No comments:
Post a Comment