Add stripes to a table's non-hidden rows on document load without the table-striped
class.
tr.stripe {
background-color: #f9f9f9;
}
$(function() {
$("tr:not(.hidden)").each(function (index) {
$(this).toggleClass("stripe", !!(index & 1));
});
});