jQuery - condition for more elements

0 votes
137 views
added Jun 13, 2019 in jQuery by LC Marshal Captain (25,790 points)
if( $(this).css("display") == "none"  || $(this).hasClass("display-none") ) {
  // do this
}

 

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