title: how to make dropdown keep open on hover and disappear when leave it
body: <p>i really need help. i tried but it is still not working. i want to make a dropdown menu that will appear on hover and will disappear when leave that dropdown. </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>$(document).ready(function(){
   $('.navigation-menu').mouseenter(function(){
     $('.navigation-dropdown').addClass('visible');
    });
    $('.navigation-dropdown').mouseleave(function(){
     $('.navigation-dropdown').removeClass('visible');
    });
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>ul{
    margin: 0;
  }
  .container{
    background-color: rgb(0,0,0);
    height: 30px;
    padding: 10px;
  }
  .container-dropdown{
    background-color: rgb(125,125,125)
  }
  .dropdown-menu{
    display: inline-block;
  }
  .navigation-dropdown{
    display: none;
  }
  .navigation-menu{
    display: inline-block;
    height: 100%;
  }
  .visible{
    display: block;
  }</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;header id="header"&gt; 
    &lt;div class="container"&gt;
      &lt;img src="" alt=""&gt;
      &lt;div class="navigation"&gt;
        &lt;ul&gt;
          &lt;li class="navigation-menu"&gt;&lt;a href=""&gt;home&lt;/a&gt;&lt;/li&gt;
          &lt;li class="navigation-menu"&gt;&lt;a href=""&gt;home&lt;/a&gt;&lt;/li&gt;
          &lt;li class="navigation-menu"&gt;&lt;a href=""&gt;home&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="navigation-dropdown"&gt;
      &lt;div class="container-dropdown"&gt;
        &lt;ul&gt;
          &lt;li class="dropdown-menu"&gt;
            &lt;img src="http://placehold.it/50x50" alt=""&gt;
          &lt;/li&gt;
          &lt;li class="dropdown-menu"&gt;
            &lt;img src="http://placehold.it/50x50" alt=""&gt;
          &lt;/li&gt;
          &lt;li class="dropdown-menu"&gt;
            &lt;img src="http://placehold.it/50x50" alt=""&gt;
          &lt;/li&gt;
        &lt;/ul&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/header&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>So, i just want to make that gray div disappear when i move my mouse leave the navigation-menu class</p>
  
  <p><strong>my problem:</strong> i have to move the mouse to the gray div first to make the gray div disappear. all i want is make the gray div can disappear without have to move the mouse to the gray div first</p>