Return to Snippet

Revision: 51527
at September 27, 2011 20:48 by i-am-andy


Initial Code
jQuery('.exploreContentArea .listArea ul li:nth-child(4n)')
.addClass('last').show();

Initial URL
http://stackoverflow.com/questions/5100613/apply-class-to-every-4th-li-inside-a-ul

Initial Description
Add a class to every 4th item using jQuery nth-child and add class

Initial Title
Add Class To 4th Repeating Item

Initial Tags
jquery

Initial Language
jQuery