Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>When you load the page, the bar and baz tabs are created, but in their style, display is set to none which is why they are not visible originally. Inside the tab, when you hit the X, it actually removes the div for bar and baz completely. When you re-click to add the bar or baz tab after it closes, it recreates the div, but you are not putting anything within it. Add something like the following to once you create the tab.</p> <pre><code>document.getElementById("bar").innerHtml = whatever you want within it here </code></pre> <p>Before:</p> <pre><code>&lt;div id="foo" class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide"&gt; &lt;h2&gt;Foo Tab&lt;/h2&gt; &lt;/div&gt; &lt;div id="baz" class="transient" style="display: none"&gt; &lt;h2&gt; &lt;button class="close" style="float: right" type="button"&gt; &lt;span class="ui-icon ui-icon-closethick"&gt;close&lt;/span&gt; &lt;/button&gt; Baz Tab &lt;/h2&gt; &lt;/div&gt; &lt;div id="bar" class="transient ui-tabs-panel ui-widget-content ui-corner-bottom" style="display: block;"&gt; &lt;h2&gt; &lt;button class="close" style="float: right" type="button"&gt; &lt;span class="ui-icon ui-icon-closethick"&gt;close&lt;/span&gt; &lt;/button&gt; Bar Tab &lt;/h2&gt; &lt;/div&gt; </code></pre> <p>After opening and closing both</p> <pre><code>&lt;div id="foo" class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide"&gt; &lt;h2&gt;Foo Tab&lt;/h2&gt; &lt;/div&gt; &lt;div id="bar" class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" style="display: block;"&gt;&lt;/div&gt; &lt;div id="baz" class="ui-tabs-panel ui-widget-content ui-corner-bottom" style="display: block;"&gt;&lt;/div&gt; </code></pre>
    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. VO
      singulars
      1. This table or related slice is empty.
    2. 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