$(skinAds).each(function () { if($(this).css('display') == 'none'){ console.log('skin ads - none'); } else { // do nothing } })