jQuery - Operator

0 votes
519 views
added Mar 13, 2019 in jQuery by LC Marshal Captain (25,790 points)
else if ($('body').hasClass(excptThisPage) || ('deposit-scheme')) {
    console.log('I have either this 2 body class')
}

 

2 Responses

0 votes
responded Apr 26, 2019 by LC Marshal Captain (25,790 points)
var priceParam;
var pRMax = $('[name="pricerent"]').val(),
  pBMax = $('[name="pricebuy"]').val(),
  pRMaxP = pRMax == 9000,
  pBMaxp = pBMax == 1000000;
if (pRMaxP || pBMaxp == true) {
    priceParam = '&price_min=';
}
// else if (testb) {
//   priceParam = '&price_min=';
// }
else {
    priceParam = '&price_max=';
}

 

0 votes
responded Nov 27, 2019 by lcjr First Warrant Officer (11,870 points)
if($(bodyContent).hasClass('page-content-1600099') || ('page-content-1615171')) {
  newsMeta.css('margin-top', '30px');
  // firstP.append(newsMeta);
  japanCarousel.append(newsMeta);
  newsMeta.show();
}
else {
  firstP.append(newsMeta);
  newsMeta.show();
}

 

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