jQuery - Condition with .each(function ()

0 votes
93 views
added Jun 13, 2019 in jQuery by LC Marshal Captain (25,770 points)
$(skinAds).each(function () {
    if($(this).css('display') == 'none'){ 
        console.log('skin ads - none'); 
    }
    else {
      // do nothing
    }
})

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...