Note that there are some explanatory texts on larger screens.

plurals
  1. POBootstrap Tab within Popover isn't working
    primarykey
    data
    text
    <p>Bootstrap's Tabs do not seem to be working for me when used within Bootstrap's Popover.</p> <p>What happens is following:</p> <pre><code> 1. Popover opens 2. Active tab on click changes 3. Tab content is not changing &lt;-- PROBLEM </code></pre> <p>Tabs are created correctly and if you try them outside of popover they work fine.</p> <pre><code>&lt;a class="btn" id="btnPopover" href="#"&gt;Launch Popover&lt;/a&gt; &lt;div class="tabbable hide" id="popoverContent"&gt; &lt;ul class="nav nav-tabs"&gt; &lt;li class="tab active"&gt;&lt;a href="#tab1" data-toggle="tab"&gt;Tab 1&lt;/a&gt;&lt;/li&gt; &lt;li class="tab"&gt;&lt;a href="#tab2" data-toggle="tab"&gt;Tab 2&lt;/a&gt;&lt;/li&gt; &lt;li class="tab"&gt;&lt;a href="#tab3" data-toggle="tab"&gt;Tab 3&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;div class="tab-content" style="padding-top: 15px"&gt; &lt;div class="tab-pane active" id="tab1"&gt;Tab Content 1&lt;/div&gt; &lt;div class="tab-pane" id="tab2"&gt;Tab Content 2&lt;/div&gt; &lt;div class="tab-pane" id="tab3"&gt;Tab Content 3&lt;/div&gt; &lt;/div&gt; </code></pre> <p></p> <pre><code>$(function () { $("#btnPopover").popover({ html: true, trigger: 'click', title: "Title", placement: "bottom", content: $("#popoverContent").html() }); }); </code></pre> <p>What seems to happen with bootstrap in this case is that it duplicates the elements. I planned using further javascript libs and plugins on elements within content tabs, and this makes it pretty much impossible, unless somebody provides a solid workaround. I honestly think this is a valid Bootstrap's bug.</p> <p>jsfiddle demo: <a href="http://jsfiddle.net/iboros/nCfBf/" rel="nofollow">http://jsfiddle.net/iboros/nCfBf/</a></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.
 

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