Adding different classed through looping
<p>I have a number of <code>li</code> elements, and I need to a class to the 1st, 4th and 7th, the 2nd,  5th and 8th, and the 3rd, 6th and 9th.</p>

<p>Can this be done?</p>
