title: How to open submenu on hover of main menu?
body: <p>Hi I am making menu and submenu. I have made menu with all effect. I want to open submenu on hover of menu item, but it's not opening; it shows me already open.</p>
  
  <p>My <a href="http://jsfiddle.net/kurbhatt/n7J8x/" rel="nofollow">JSFiddle</a></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>#companymenu {
      background-color: #999;
      height:35px;
      width:100%;
      margin-top: -10px;
  }
  .companymenuul {
      list-style-type: none;
  }
  .companymenuli {
      float: left;
      display:block;
      line-height: 35px;
      padding: 0 15px;
  }
  .alisting {
      color:#000;
      text-decoration:none;
  }
  .aactive {
      color: #333;
      background-color: #fff;
      border-top: 2px solid #999;
      margin-top: -2px;
  }
  .companymenuli a:hover {
      color:#C63;
      text-decoration:none;
      cursor:pointer;
      padding-top:10px;
      padding-left:24px;
      padding-right: 23px;
      padding-bottom: 11px;
      background-color: #fff;
      border-top: 2px solid #999;
      margin-top: -2px;
  }
  .caret {
      display: inline-block;
      width: 0;
      height: 0;
      vertical-align: top;
      border-top: 4px solid #fff;
      border-right: 4px solid transparent;
      border-left: 4px solid transparent;
      content:"";
      margin-top: 15px;
      margin-left: 5px;
      border-bottom-color: #fff;
      filter: alpha(opacity=100);
      background-image:url(images/topnav-arrow-down-white-ie6.png)no-repeat 0 0 transparent;
      _display: inline;
      _zoom: 1;
      _width: 7px;
      _height: 4px;
      _margin-top: 8px;
      _margin-left: 5px;
      _line-height: 4px;
      _border: none;
      _vertical-align: baseline;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="companymenu"&gt;
      &lt;ul class="companymenuul"&gt;
          &lt;li class="companymenuli aactive"&gt;&lt;a class="alisting"&gt;Home&lt;/a&gt;&lt;/li&gt;
          &lt;li class="companymenuli"&gt;&lt;a class="alisting"&gt;Product Categories&lt;b class="caret"&gt;&lt;/b&gt;&lt;/a&gt;
              &lt;ul&gt;
                  &lt;li&gt;1&lt;/li&gt;
                  &lt;li&gt;2&lt;/li&gt;
                  &lt;li&gt;3&lt;/li&gt;
              &lt;/ul&gt;
          &lt;/li&gt;
          &lt;li class="companymenuli"&gt;&lt;a class="alisting"&gt;Company Profile  &lt;b class="caret"&gt;&lt;/b&gt;&lt;/a&gt;
          &lt;/li&gt;
          &lt;li class="companymenuli"&gt;&lt;a class="alisting"&gt;Contacts&lt;/a&gt;
          &lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I want to open <code>&lt;ul&gt;</code> on hover of Product Categories <code>&lt;li&gt;</code></p>