Add “odd” class to alternate table row (and change the background color of the class via CSS to have stripes effect for tabl


/ Published in: jQuery
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $('tr:odd').addClass('odd');

URL: http://eisabainyo.net/weblog/2010/09/01/10-useful-jquery-snippets/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.