title: javascript multi click show hide
body: <p>I have user code to show/hide meu</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>$('.dcd_menu').click(function(e){
  e.preventDefault();
  $('.dcdt_menu').slideToggle();
  $(this).toggleClass('open');
  });
  
  $('.dcd_menu1').click(function(e){
  e.preventDefault();
  $('.dcdt_menu1').slideToggle();
  $(this).toggleClass('open');
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.dcd_menu { display: block; position: fixed; top: 0; right: 0; z-index: 9999}
  .dcd_menu:hover { cursor: pointer; }
  .dcd_menu.open {background: red}
  
  .dcd_menu1 { display: block; position: fixed; top: 0; left: 0; z-index: 9999}
  .dcd_menu1:hover { cursor: pointer; }
  .dcd_menu1.open {background: red}
  
  .dcdt_menu {background: green; display: none;} .dcdt_menu1 {background: red; display: none;}</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;a class="dcd_menu" href="#"&gt;
  Menu
  &lt;/a&gt;
  &lt;div class="dcdt_menu"&gt;
    Click show menu
  &lt;/div&gt;
  
  &lt;a class="dcd_menu1" href="#"&gt;
  Menu 1
  &lt;/a&gt;
  &lt;div class="dcdt_menu1"&gt;
    Click show menu 1
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Thal all ok but when i click menu 1 (not close menu 1) and click menu 2 is double 2 menu is show (open.)</p>
  
  <p>How to when click menu 1 => Menu 2(open) to close. or click menu 2 => Menu 1(open) to close.</p>
  
  <p>Any idea for helf me. Thanks for any support</p>