What is the best unobtrusive and lightweight jquery solution to make tab?

Posted by metal-gear-solid on Stack Overflow See other posts from Stack Overflow or by metal-gear-solid
Published on 2010-04-27T16:26:09Z Indexed on 2010/04/27 16:33 UTC
Read the original article Hit count: 256

Filed under:
|
|

Which is the best unobtrusive and lightweight jquery solution to make tab? Although Jquery similar to jquery ui. jquery ui tab is good but it's overkill fro for just tab. we will have to add jquery ui core.js, jquery ui tab.js then a little code snippet.

I need lightweight solution. using this type HTML. and jquery code should be in no.conflict mode.

<ul>
        <li><a href="#example-1">example 1</a></li>
        <li><a href="#example-2">example 2</a></li>
        <li><a href="#example-3">example 3</a></li>
</ul>
    <div id="tabs-1">
        <p>
            tab 1 content</p>
    </div>
    <div id="tabs-2">
        <p>
            tab 2 content</p>
    </div>
    <div id="tabs-3">
        <p>
            tab 3 content</p>
    </div>

tabs content should be accessible if js is disabled.

© Stack Overflow or respective owner

Related posts about XHTML

Related posts about css