jQuery - to check element has CSS style

0 votes
355 views
added Aug 20, 2018 in jQuery by LC Marshal Captain (25,790 points)
// if this form has a style display: none style attribute, do this
if ($('form#personal-information').css('display') == 'none') {
  $('.multi-steps li:nth-child(2)').addClass('is-active');
  $('.multi-steps li:nth-child(1)').removeClass('is-active');
}

 

1 Response

0 votes
responded Jul 4, 2019 by LC Marshal Captain (25,790 points)
if((parallaxFlg.css('display') == 'none')){
  parallaxAdCon.hide();     
}

 

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