O'Reilly logo

jQuery 1.3 with PHP by Kae Verens

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using jQuery accordion plugins

Accordions are very similar to tabs. They show a single pane of information at a time, and you can navigate through the panes by clicking on a header link for the pane you want to see.

There are some differences between how a jQuery accordion is defined and how a jQuery tab is defined. These implementation differences can be understood by considering how the information should be shown when JavaScript is disabled in the browser — tabs are discrete sections of information (like chapters, maybe), but accordions are usually used only to make the continuous text easier to read.

Again, the jQuery UI project already has a good implementation of accordions built into its core files. So, you don't need to download an extra ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required