3 ways to do this:

  1. jQuery #1
    $('table tr:even').addClass('even');
  2. jQuery #2
    $
    ('table tr:even').css('background-color', '#eee');
  3. Background Image
    If you are certain that all table rows will be have the same height, you can assign a repeatable background image to the table.
Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *