Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

jQuery - Operator

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

 

2 Responses

0 votes
responded Apr 26 by LC Marshal Captain (25,420 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 by lcjr Sergeant (1,540 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.
...