/ Published in: jQuery
Add a class to every 4th item using jQuery nth-child and add class
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
jQuery('.exploreContentArea .listArea ul li:nth-child(4n)') .addClass('last').show();
URL: http://stackoverflow.com/questions/5100613/apply-class-to-every-4th-li-inside-a-ul