I have a accordion which is working absolutely fine but what I need is to open only one tab at a time, means when one tab is opened then another tab should be closed.
Cu
You can also close other accordions by adding a beforeActivate callback:
beforeActivate
$( ".myAccordion" ).accordion({ collapsible: true, active: false, heightStyle: "content", beforeActivate: function(event, ui) { $( ".myAccordion" ).not(this).accordion('option', 'active', false); }