using jquery as an alternative to css nth child
- by JCHASE11
Hi. I am using the following css to create list items with a chckerboard background ( every other list item has a grey background, which shift every row to create a checkerboard pattern:
li:nth-child(8n+2), li:nth-child(8n+4), li:nth-child(8n+5), li:nth-child(8n+7) {
background-color:grey;
}
Is there way I can do this using jquery that is more supportive than css3? Thanks