0

I've used jquery-ui before and even used the Tabs aspect of jquery-ui before... but for some reason, it's not working today. What the heck am I doing wrong?

<!doctype html>
<html>
    <head>
        <link rel="stylesheet" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/themes/ui-lightness/jquery-ui.css" />

        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
        <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script>


        <script type="text/javascript">
            $(document).ready(function() {
                $('#tabs').tabs();
            });
        </script>
    </head>
    <body>

        <div id="tabs">
            <ul>
                <li><a href='#tabs-1'>Email</a></li>
                <li><a href='#tabs-2'>Email 2</a></li>
            </ul>

            <div id='tabs-1'>
                <p>test</p>
            </div>
            <div id='tabs-2'>
                <p>test2</p>
            </div>
        </div>

    </body>
</html>

The page is just completely plain:

enter image description here

3
  • 1
    I don't see anything wrong with that. And a jsFiddle of your code works fine. Are you getting any errors? Sure the scripts and CSS are loading? Commented May 9, 2012 at 0:56
  • As per previous commenter, I suspect the resources are not being found. Commented May 9, 2012 at 0:58
  • It is working for me jsfiddle.net/efortis/Wqq2F, where are you testing this? Commented May 9, 2012 at 1:07

1 Answer 1

2

href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/themes/ui-lightness/jquery-ui.css"

Sign up to request clarification or add additional context in comments.

1 Comment

facepalm Thank you, I totally wasn't even checking the "src" vs "href" attribute.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.