jQuery Tools provides some UI addons to the basic jQuery Library. You can create Tabs, Accordions, Tooltips, Overlays and more using this library. The whole library fits in less than 6Kb, so you can replace all the separate libraries you are using for these functionalities by using this library.
The library has an easy to use API, which both beginners and advanced developers can use to integrate. To show you how easy it is to setup tabs in this library, here’s an example from their site. The HTML code looks like this:
<!-- the tabs --> <ul> <li><a href="#">Tab 1</a></li> <li><a href="#">Tab 2</a></li> <li><a href="#">Tab 3</a></li> </ul> <!-- tab "panes" --> <div class="panes"> <div>pane 1 content</div> <div>pane 2 content</div> <div>pane 3 content</div> </div> |
The Javascript which powers the tabs is simply :
// setup ul.tabs to work as tabs for each div directly under div.panes $("ul.tabs").tabs("div.panes > div"); |
To see this in action and more information on the code, check this link out:
http://flowplayer.org/tools/tabs.html
You can also check out the other functionalities which this library provides :
- Tooltips ( this example shows tooltips working on form fields)
- Overlays
- Accordians
- Other Demos
Learn more about jQuery Tools over at: http://flowplayer.org/tools/index.html
Related articles by Zemanta
- jQuery from the very beginning (slideshare.net)
- Glimmer – jQuery Made Easy (blogs.msdn.com)
- jQuery UI 1.7 Released: New CSS Framework & Dramatic Updates to Controls (ajaxian.com)