<script> $(document).ready(function () { $('.test').each(function () { if ($(this).is(':visible')) { //your code for visible Div with class='test' } }); }); </script>
div
$(document).ready(function () { var divShowing = new Array(); var divNotShowing = new Array(); $('.test').each(function () { if ($(this).is(':visible')) { divShowing.push($(this)); } else { divNotShowing.push($(this)); } }); alert("Number of Divs Visible: " + divShowing.length + "\n\n" + "Number of Divs Not Visible: " + divNotShowing.length); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)