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

0 votes
366 views
added Mar 6, 2020 in jQuery by lcjr First Warrant Officer (9,190 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.
...