var $fields = $('#div'); // not a good idea for an id var firstDL = $fields.find('dl:first-child')[0];
$(XXX).each(function(){ if ( $(this).prev('dl').is( firstDL ) ) blowUp(); }); or if ( $fields.index( $(this.prev('dl')[0] ) == 0 ) or if ( $(this.prev('dl')[0] == $('#div dl:first')[0] ) On Jan 30, 6:54 pm, Jack Finger <jack.fin...@gmail.com> wrote: > Anybody knows?