Note that there are some explanatory texts on larger screens.

plurals
  1. POJQuery : Can i have 2 tabs in the same page?
    primarykey
    data
    text
    <p>i'm trying to have 2 tabs in the same page, but the first works great, and the second doesn't work at all.</p> <p>It is possible to have 2 tabs in the same page, if yes, how can i manage that?</p> <p>Both have the same code ... example : $('#tab1').tabs(); and the other $('#tab2').tabs();</p> <p>Thank you</p> <p>My HTML:</p> <pre><code>&lt;section&gt; &lt;div id="radioprog"&gt; &lt;h2 class="fire"&gt;R&amp;aacute;dio&lt;/h2&gt; &lt;ul id="radio-nav"&gt; &lt;li&gt;&lt;a class="dia" href="#seg"&gt;2ª&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a class="dia" href="#ter"&gt;3ª&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;div id="seg" class="programacao"&gt; seg &lt;/div&gt; &lt;div id="ter" class="programacao"&gt; ter &lt;/div&gt; &lt;/div&gt; &lt;/section&gt; &lt;section id="info-tab" style="width:325px; margin-top:3px;"&gt; &lt;div id="tabs"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#comentados"&gt;+ Comentados&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#lidos"&gt;+ Lidos&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;div id="comentados"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#nowhere" title="Lorum ipsum dolor sit amet"&gt;Lorem&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#nowhere" title="Aliquam tincidunt mauris eu risus"&gt;Aliquam&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;div id="lidos"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#nowhere" title="Lorum ipsum dolor sit amet"&gt;Lorem&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#nowhere" title="Aliquam tincidunt mauris eu risus"&gt;Aliquam&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;/section&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.
 

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