Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7582767
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:31:00+00:00 2026-05-30T18:31:00+00:00

I am trying to make some tabs with the Jquery ui. My html looks

  • 0

I am trying to make some tabs with the Jquery ui.

My html looks lie this…

<html>

<head>

    <!--use for jquery-->
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>

    <!--external javascript source-->
    <script type= "text/javascript" src= "javascript/home_scripts.js"> </script>

    <!--css-->
    <link rel="stylesheet" type="text/css" href="css/homepage.css" />


</head>

<body>

    <ul class="tabs">
        <li><a href="#">Tab 1</a></li>
        <li><a href="#">Tab 2</a></li>
        <li><a href="#">Tab 3</a></li>
    </ul>

    <div class="panes">
        <div>First tab content. Tab contents are called "panes"</div>
        <div>Second tab content</div>
        <div>Third tab content</div>
    </div>




</body>


</html>

and my javascript file looks like so

$(function() {
// setup ul.tabs to work as tabs for each div directly under div.panes
$("ul.tabs").tabs("div.panes > div");
});

The problem is that when I load my page, there are no tabs. It looks like this

Tab 1
Tab 2
Tab 3
First tab content. Tab contents are called "panes"
Second tab content
Third tab content

What have I done wrong? I tried to follow the tutorial as best as I could.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T18:31:01+00:00Added an answer on May 30, 2026 at 6:31 pm

    Change your markup to:

    <div class="tabs">
        <ul>
            <li><a href="#tab1">Tab 1</a></li>
            <li><a href="#tab2">Tab 2</a></li>
            <li><a href="#tab3">Tab 3</a></li>
        </ul>
        <div id="tab1">First tab content. Tab contents are called "panes"</div>
        <div id="tab2">Second tab content</div>
        <div id="tab3">Third tab content</div>
    </div>
    

    and your JavaScript to:

    $(function () {
        $("div.tabs").tabs();
    });
    

    The .tabs() function does not take a selector as a parameter. It uses the innerHTML structure of the selected element to make the tabs. Ideally, the href on your anchors should point to an id on the corresponding “pane”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to make some text bold using HTML, but I'm struggling to get
I am trying to make some text scroll vertically using jQuery, I have been
Im trying to make some text non-copyable, my aim isn't to stop people from
I'm trying to make some text I have as an attribute of an element
I'm trying to make some html with css pages (I'm new to both) and
I'm trying make some stuff in jQuery using ASP.NET. But the ID from runat=server
Im trying to make some queries, first, I do this one (and works): SELECT
I am currently trying to make some jQuery hover effects render correctly in all
So i'm trying to make tabs with the JQuery UI framework, but I can't
I'm trying to use the Google to load jQuery for some pages and jQuery

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.