Как проверить, если.

$('.selector').each(function(key, value){
    if ( key === 0) {
       // do something if first element
    }
});
Rich Raven