jQuery - if element is not present or exist

0 votes
180 views
added Aug 2, 2019 in jQuery by LC Marshal Captain (25,790 points)
else if (!catfishUnit.length) {
  shareBtn.attr('style', '').addClass('in');
  console.log('no catfish');
}

 

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