I want to set an alternative background color for the rows in the table, but the rotation is that I do not want every other row to be colored, I want to process them in blocks of three rows.
So, for a table with eight rows, I want the first three to be white, and the next three to be the background color, and the last two to go back to white again.
How to do it using jQuery?
source
share