Reputation: 23576
Is it possible to have an accordion embedded in another accordion with jQuery UI?
-Item One
-Item Two
-Item Three
--Sub One
--Sub Two
--Sub Three
-Item Four
Where Sub One through Four is another accordion.
Thanks
Upvotes: 10
Views: 18540
Reputation: 3802
Just give different id
names for each accordion and call them in the jquery function an you would have to edit the css to get the desired look though.
$(function() {
$( "#accordion,#accordion2" ).accordion();
});
Upvotes: 1
Reputation: 3175
Give each container that you want to make an accordion a class like accordion
and use:
$(".accordion").accordion();
Upvotes: 1