/ Published in: jQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$("ul li:nth-child(3n+1)").addClass("A") $("ul li:nth-child(3n+2)").addClass("B") $("ul li:nth-child(3n)").addClass("C")