Select every other 2 table rows with jquery
Posted
by Mark
on Stack Overflow
See other posts from Stack Overflow
or by Mark
Published on 2010-05-06T15:04:46Z
Indexed on
2010/05/06
15:08 UTC
Read the original article
Hit count: 300
I am currently using this code to add a class to every other row in my table.
$(".stripeMe tr:even").addClass("alt");
However, on another table i'd like to add a class to rows 3,4, 7,8 11,12 and so on...
Is this possible? thanks
© Stack Overflow or respective owner