Coding alternative shaded rows?
- by ming yeow
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