title: creating submenu on hover and make it topmost
body: <p>I'm using jquery to create a submenu on hover.</p>
  
  <p>here's what it looks like :</p>
  
  <pre><code>&lt;div id="menucontainer"&gt;
    &lt;ul id = "topmenu"&gt;
      &lt;li&gt;&lt;a onmouseover="javascript:show('div_1');"&gt;menu_1&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a onmouseover="javascript:show('div_2');"&gt;menu_2&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a onmouseover="javascript:show('div_3');"&gt;menu_3&lt;/a&gt;&lt;/li&gt; # fine with onmouseover since code is generated from templates
  
    &lt;/ul&gt;
    &lt;div id="div_1" class="submenu"&gt;
      &lt;ul&gt;
        &lt;li&gt; submenu_1 &lt;/li&gt;
        &lt;li&gt; submenu_2 &lt;/li&gt;
        &lt;li&gt; submenu_3 &lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
    &lt;div id="div_3" class="submenu"&gt;
      &lt;ul&gt;
        &lt;li&gt; submenu_1 &lt;/li&gt;
        &lt;li&gt; submenu_2 &lt;/li&gt;
        &lt;li&gt; submenu_3 &lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
    &lt;div id="div_3" class="submenu"&gt;
      &lt;ul&gt;
        &lt;li&gt; submenu_1 &lt;/li&gt;
        &lt;li&gt; submenu_2 &lt;/li&gt;
        &lt;li&gt; submenu_3 &lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;style&gt;
  #topmenu {
    list-style: none;
  }
  #topmenu &gt; li {
    display: inline-block;
  }
  .submenu {
    display: none;
  }
  
  &lt;script&gt;
  function show(divid) {
    $('.submenu').css('display', 'none');
    $('#'+divid).css('display', 'block');
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>problem is that when <code>show(div)</code> is called and submenu div is displayed, I have another div after "menucontainer" and that div blocks clicks to displayed div. How can I solve this?</p>