Eli Courtwright
Eli Courtwright

Reputation: 193311

Two different jQuery UI themes on the same page

I want to have two different jQuery UI accordion menus on the same page, but I want them to have different themes. Is this possible?

Upvotes: 4

Views: 3359

Answers (2)

Justin Ethier
Justin Ethier

Reputation: 134275

According to the article Using Multiple jQuery UI Themes on a Single Page from the Filament Group, it is possible to provide a CSS Scope when a theme is downloaded that will allow you to specify use of alternate themes on a single page. There is also a link to a demo page.

Disclaimer: I have not tried doing this myself, but it does look promising.

Upvotes: 2

Josh E
Josh E

Reputation: 7432

Absolutely. The jQuery UI CSS Framework has a robust and complete theming solution. Just give your accordions separate CSS classes - jQuery UI classes are semantic in nature - and off you go! Let me know if you'd like an example.

EDIT: There are many different ways to do this, depending on what your needs are. See the bottom part of this page for more information on how to use theme-ing with the accordion

Upvotes: 4

Related Questions