O'Reilly logo

jQuery, jQuery UI, and jQuery Mobile: Recipes and Examples by Adriaan de Jonge

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

Chapter 7. Interacting with Widgets

Now that you’ve been introduced to the basics of user interaction with the help of jQuery UI, in this chapter you’ll learn about a set of components with a more specific HTML structure. Accordions, tabs, auto-complete suggestions, date pickers, buttons, sliders, dialogs, and progress bars are part of the widgets that are included in jQuery UI.

Widgets are jQuery UI components that require more specific HTML as input and can generate more complex HTML structures as an output.

Recipe: Grouping Content by Using the Accordion

Listing 7.1 introduces the accordion widget, with which you can group content under headers and show only a single selected group at a time. Clicking another header closes the current group ...

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