Is there an easy way to do this without a each loop.
I want to hide the entire I'd suggest, although this still, implicitly, examines each of the JS Fiddle demo. This is, with quite some cross-browser difficulties, sort of possible in CSS, using the JS Fiddle demo. References: If you want to use each, you can do it like: jsFiddle example but only if a all its s are blank.
The
tr elements:$('tr').filter(
function(){
return $(this).find('td').length == $(this).find('td:empty').length;
}).hide();
:not() and :empty pseudo-selectors:tr td:empty {
visibility: hidden;
height: 0;
}
td:not(:empty) ~ td:empty {
visibility: visible;
height: 100%;
}
$('#table1 tr').each(function() {
if ($(this).find('td:empty').length) $(this).remove();
});