jQuery :step selector

Example 1: every 3rd element is selected

By default it starts with the first element

Usage

$('ul#one li:step(3)').addClass('alt');

Example 2: every 3rd element is selected starting with 5th element

Usage

$('ul#two li:step(3,5)').addClass('alt');

back to the article

jQuery :step() selector is brought to you by Css Globe, Easy front-end framework and supported by Css Templates by Templatica