Are you first timer at Why not join us and start exchange your programming knowledge with everyone. Register today!

jQuery - Flag if element has CSS property display none

0 votes
added Nov 22 in jQuery by LC Marshal Lieutenant (14,830 points)
recategorized 2 days ago by LC Marshal
var dfpBndrlElemPre          = '#div-gpt-ad-',
      dfpBndrlId               = '1542075954162-0', // banderole id 
      dfpBndrlFullId           = '.banderole' + ' ' + dfpBndrlElemPre + dfpBndrlId;

if(($(dfpBndrlFullId).css('display') == 'none')){ 
     console.log('banderole hide');
else {
  console.log('banderole show');


Please log in or register to response this reference. - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.