jQuery - hide class in specific URL

0 votes
349 views
added Dec 5, 2018 in jQuery by LC Marshal Captain (25,790 points)
document.ready(function() {
  if (window.location.href.indexOf('https://www.yoursite.com/portal/')) {
    //Hide the element.
    $('.banderole').hide();
  }
});
lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...