Return to Snippet

Revision: 16748
at August 14, 2009 09:14 by davebowker


Initial Code
$('.ukn-quote-wall .ukn-quote').each(function(i){
	var n = i % 3;
	$(this).addClass(
	n == 0 ? 'ukn-style-a' :
	n == 1 ? 'ukn-style-b' :
	n == 2 ? 'ukn-style-c' : '');
});

Initial URL

                                

Initial Description

                                

Initial Title
jQuery addClass every other (n)

Initial Tags
jquery

Initial Language
jQuery