// this function can easily stripe every other row of a table
var rowStripe = function () {
  $('table').find('tr').filter(':nth-child(odd)').addClass('odd');
};

$(function () {
  rowStripe();
});