jQuery - else if condition

0 votes
311 views
added Feb 15, 2019 in jQuery by LC Marshal Captain (25,790 points)
if($('body').hassClass(!excptThisPage)) {
    // do thiss
}
else if ($('body').hasClass(excptThisPage)) {
// 	do this
}
else {
    // do nothing
}

 

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