How to create zebra table effect with jQuery and CSS

To create zebra table effect with jQuery and CSS you can use the following snippet.

jQuery

$("tr:odd").addClass("oddRowsEffect");

in the css you need something like

tr.oddRowsEffect{
/* background: choose a color; *
/* color: choose a color; *
}

Please Share us:
Please rate this snippet

2 thoughts on “How to create zebra table effect with jQuery and CSS

Leave a Reply