let offers = $('.offer');
offers.each(function (i){
if(offers.children(".yes")){
console.log('yeas ' + i)
}
});
let offers = $('.offer');
найдет все элементы с классом offeroffers.each(function (i){
if(offers.children(".yes")){
console.log('yeas ' + i)
}