title: Hide or show elements when user change buttons
body: <p>I'm just going to create a function that allows me to hide some elements (filters on my website), while the other element ( All Categories) is selected. I'm using Sharetribe - marketplace CMS, here's mine <a href="https://rentim.sharetribe.com/" rel="nofollow noreferrer">https://rentim.sharetribe.com/</a> </p>
  
  <p>Here's piece of code I wrote to make it happen, but it's not working </p>
  
  <pre><code>document.querySelectorAll('a.home-categories-main:first-child.selected'),
  function hideFilters() {
     document.getElementById('filters').style.display = 'none';
  };           
  </code></pre>