title: How to target specific div and then toggle class?
body: <p>For example, I have this menu:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function toggleHiddenContent(tabClass) {
      let t = document.querySelectorAll(tabClass);
      for(var i = 0; i&lt;t.length; i++) {
          t[i].classList.toggle="visible-class";
      }
  }</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.hidden-content {
      display: none;
  }
  .visible-class {
      display: block
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div&gt;
      &lt;a class="main-holder" onClick="toggleHiddenContent('.main-holder')"&gt;Main one&lt;/a&gt;
      &lt;div class="hidden-content"&gt;Hidden content One&lt;/div&gt;
  
      &lt;a class="main-holder" onClick="toggleHiddenContent('.main-holder')"&gt;Main two&lt;/a&gt;
      &lt;div class="hidden-content"&gt;Hidden content two&lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>However, it toggles for all classes. I do understand what is the issue, but how would I match only the one that is clicked and not the ones that are not active (clicked)?</p>
  
  <p>I need it in vanilla js</p>
  
  <p>Thanks guys</p>