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
50 views
added Mar 13 in jQuery by LC Marshal Captain (23,940 points)
else if ($('body').hasClass(excptThisPage) || ('deposit-scheme')) {
    console.log('I have either this 2 body class')
}

 

1 Response

0 votes
responded Apr 26 by LC Marshal Captain (23,940 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=';
}

 

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