title: jQuery btn to close div if made active
body: <p>I need the <code>.menu</code> button to <strong>close</strong> the <code>.slides</code> container if it was opened by one of the <code>[name=toggler]</code> radio buttons. </p>
  
  <p>So if the state of the <code>.slide</code> is <code>show</code> and the <code>.menu</code> button is clicked, hide <code>.slides</code>.</p>
  
  <p><code>.slides</code> can only be opened by the <code>[name=toggler]</code> radio buttons, but are made hidden by clicking the <code>.menu</code> button.</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>$('.menu-btn').click(function() {
    $(".menu").toggle("slide");
  });
  $(function() {
    $("[name=toggler]").click(function() {
      $('.slide').hide();
      $("#blk-" + $(this).val()).show();
    });
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.flex,
  .btn-wrap {
    display: flex;
  }
  
  .menu,
  .slide {
    display: none;
  }
  
  .btn,
  .menu-btn {
    padding: 20px;
    border: 1px solid silver;
    cursor: pointer
  }
  
  .slide {
    height: 50px;
    width: 50px;
    border: 1px solid;
  }</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="flex"&gt;
    &lt;a href="#" class="menu-btn"&gt;Menu&lt;/a&gt;
    &lt;div class="menu"&gt;
      &lt;div class="btn-wrap"&gt;
        &lt;label class="btn"&gt;&lt;input type="radio" name="toggler" value="1"/&gt;Slide 1&lt;/label&gt;
        &lt;label class="btn"&gt;&lt;input type="radio" name="toggler" value="2"/&gt;Slide 2&lt;/label&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="slides"&gt;
    &lt;div class="slide" id="blk-1"&gt;
      Slide 1
    &lt;/div&gt;
    &lt;div class="slide" id="blk-2"&gt;
      Slide 2
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>