jQuery - if element don't have specific class, do this

0 votes
452 views
added Mar 6, 2020 in jQuery by lcjr First Warrant Officer (11,850 points)
if (!$('body').hasClass('node-type-tep-blogs')) {
  // do this
}

 

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