I\'m trying to check whether or not all the visible check boxes in a certain series are checked and i thought of just counting those that are visible and those that are visible
You could do something like this:
jsfiddle
jQuery:
$('input').each(function() { // If input is visible and checked... if ( $(this).is(':visible') && $(this).prop('checked') ) { $(this).wrap(''); } });
HTML:
CSS:
div { float: left; background: green; } div input { display: block !important; }