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
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
Give each container that you want to make an accordion a class like accordion
and use:
$(".accordion").accordion();
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();
});
DEMO