Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The submenus are showed by css. So first disable the css (hover) and add a click event to your menu item.</p> <p><strong>html example</strong>:</p> <pre class="lang-html prettyprint-override"><code>&lt;div class="dropdown"&gt; &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown"&gt;Show menu&lt;/a&gt; &lt;ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu"&gt; &lt;li&gt;&lt;a tabindex="-1" href="#"&gt;Action&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a tabindex="-1" href="#"&gt;Another action&lt;/a&gt;&lt;/li&gt; &lt;li class="dropdown-submenu"&gt; &lt;a tabindex="-1" href="#"&gt;More options&lt;/a&gt; &lt;ul class="dropdown-menu"&gt; &lt;li&gt;&lt;a tabindex="-1" href="#"&gt;Action&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a tabindex="-1" href="#"&gt;Another action&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li class="divider"&gt;&lt;/li&gt; &lt;li&gt;&lt;a tabindex="-1" href="#"&gt;Separated link&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; </code></pre> <p><strong>disable css</strong>:</p> <pre class="lang-css prettyprint-override"><code>.dropdown-submenu:hover &gt; .dropdown-menu { display: none; } </code></pre> <p><strong>trigger the click by javascript</strong>:</p> <pre class="lang-javascript prettyprint-override"><code>$('.dropdown-submenu').click(function(){ $('.dropdown-submenu &gt; .dropdown-menu').css('display','block'); return false; }); </code></pre> <p>Example: <a href="http://bootply.com/66088" rel="nofollow">http://bootply.com/66088</a></p> <p>NOTE when you have more as one submenu give each its own class</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload