Hide and Show Div Elements | Community
Skip to main content

Hide and Show Div Elements

  • March 21, 2022
  • 26 replies
  • 0 views

Show first post

26 replies

  • Author
  • April 7, 2022

@ifra If I add the below code, it works for me all good now thanks for your assistance.

 

var tileOCP = $( "a[href*='#OCP-Client']");
$(tileOCP).show();
  
var tileZonza = $( "a[href*='#Zonza-Client']");
$(tileZonza).show();
  
  for (var c in HelpCenter.user.organizations) {
    if (HelpCenter.user.organizations.length && HelpCenter.user.organizations[c].name == "Test User org") { 
      $(tileZonza).hide();
      }
    }