I’ve just noticed that the way I was zebra striping tables in jQuery didn’t handle multiple tables on the same page correctly (for an odd number of rows). Here’s the previous (problematic) snippet:
$(document).ready(function() {
$(’table tbody tr:odd’).addClass(’odd’);
});
The issue was that the use of the jQuery :odd nthChild selector would carry over to multiple tables (they [...]