title: Slidetoggle with multiple divs
body: <p>I'm struggling to make a replica of the effect seen here: <a href="https://tu-dresden.de/if" rel="nofollow noreferrer">https://tu-dresden.de/if</a> you click on Language, Search, Internal and the navigation in the blue header.</p>
  
  <p>I have managed to create this: <a href="https://jsfiddle.net/06tfufo6/2/" rel="nofollow noreferrer">https://jsfiddle.net/06tfufo6/2/</a>
  I would like to keep the slideToggle effect upon clicking and somehow slideToggle each element inside.</p>
  
  <p>Upon clicking the same/active button it should all close. I can't seem to wrap my head around how this can be done.</p>
  
  <p>Thank you</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>jQuery('.container-box, .slideout-container').hide();
  jQuery('.btn-group a').on('click', function() {
  
    var target = "#" + jQuery(this).data("target");
  
    jQuery('.slideout-container').slideToggle();
    jQuery('.container-box').not(target).hide().attr('aria-expanded', 'false');
    jQuery(target).show().attr('aria-expanded', 'true');
  
  
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.btn-group {
    background-color: #002557;
  }
  
  a {
    color: #fff;
    padding: 10px 20px;
  }
  
  .slideout-container {
    padding: 25px 0;
    background: #ccc;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div class="btn-group"&gt;
    &lt;a href="#" class="btn blue" data-target="language" aria-expanded="false"&gt;Show language&lt;/a&gt;
    &lt;a href="#" class="btn blue" data-target="top_search" aria-expanded="false"&gt;Show search&lt;/a&gt;
    &lt;a href="#" class="btn blue" data-target="navigation" aria-expanded="false"&gt;Search navigation&lt;/a&gt;
  &lt;/div&gt;
  
  &lt;div class="slideout-container"&gt;
    &lt;section id="top_search" class="container-box" aria-expanded="false"&gt;
      Section search
    &lt;/section&gt;
  
    &lt;section id="language" class="container-box" aria-expanded="false"&gt;
      Section language
    &lt;/section&gt;
  
    &lt;section id="navigation" class="main-navigation container-box" role="navigation" aria-expanded="false"&gt;
      Navigation
    &lt;/section&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>