Coding alternative shaded rows?
Posted
by ming yeow
on Stack Overflow
See other posts from Stack Overflow
or by ming yeow
Published on 2010-05-09T23:29:06Z
Indexed on
2010/05/09
23:38 UTC
Read the original article
Hit count: 148
JavaScript
|ruby-on-rails
I want alternative rows in my table to be shaded. what is the best way to do this, javascript, rails?
Today, i do a simple <% num % 2%>, but this is such a common operation that i think there should be a smarter way to do it
© Stack Overflow or respective owner