Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I fix tabs not showing in my page?
    primarykey
    data
    text
    <p>Jquery starter here my problem is that every time I click the Home,About,Contact and Login the tabs won't display, How can I fix this? Any ideas how can I fix this would be a big help for me. Thanks you.</p> <p>//lines of my code</p> <pre><code> &lt;!DOCTYPE HTML&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;meta charset="utf-8"&gt; &lt;title&gt;trial&lt;/title&gt; &lt;link rel="stylesheet" href="css/reset.css" type="text/css"&gt; &lt;link rel="stylesheet" href="css/style.css" type="text/css"&gt; &lt;script src="http://code.jquery.com/jquery-1.8.1.js"&gt;&lt;/script&gt; &lt;script&gt; $(function () { var tabContainers = $('section.tabs &gt; article'); tabContainers.hide().filter(':home').show(); $('section.tabs ul.tabsNav a').click(function () { tabContainers.hide(); tabContainers.filter(this.hash).show(); $('section.tabs ul.tabsNav a').removeClass('selected'); $(this).addClass('selected'); return false; }).filter(':home').click(); }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="siteWrapper"&gt; &lt;header id="siteHead"&gt; &lt;h1&gt;Header&lt;/h1&gt; &lt;/header&gt; &lt;nav id="siteNav"&gt; &lt;h1&gt;Navigation&lt;/h1&gt; &lt;ul class="tabsNav"&gt; &lt;li&gt;&lt;a href="#home"&gt;Home&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#about"&gt;About&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#contact"&gt;Contact&lt;/a&gt;&lt;/li&gt; &lt;li class="log"&gt;&lt;a href="#login"&gt;Log In&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/nav&gt; &lt;section id="siteContent" class="tabs"&gt; &lt;h1&gt;Section&lt;/h1&gt; &lt;article id="home"&gt; &lt;h2&gt;Home&lt;/h2&gt; &lt;/article&gt; &lt;article id="about"&gt; &lt;h2&gt;About&lt;/h2&gt; &lt;/article&gt; &lt;article id="contact"&gt; &lt;h2&gt;Contact&lt;/h2&gt; &lt;/article&gt; &lt;article id="login"&gt; &lt;h2&gt;Login&lt;/h2&gt; &lt;/article&gt; &lt;/section&gt; &lt;footer id="siteFooter"&gt; &lt;h1&gt;Footer&lt;/h1&gt; &lt;/footer&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&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. 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