Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS nth-of-type ignores classes Re: nth-of-type ignores classes

#92722
Miker
Member

@hellowmrtaylor: In jQuery, you could just run the following:


function selectOddFoo() {
$('.foo:odd').each(function() {

// do something here

});
}