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.
Currently you can see that we can open all the tabs by clicking on tab links.
Code here
$("#accordion > li > span").click(function() {
$(this).siblings("div").slideToggle(250);
$(this).toggleClass("active");
});
Here is the Fiddle
LIVE DEMO
Or like: LIVE DEMO
You can also close other accordions by adding a
beforeActivate
callback: