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
LIVE DEMO
$("#accordion > li > span").click(function() {
$(this).closest('li').siblings().find('span').removeClass('active').next('div').slideUp(250);
$(this).toggleClass("active").next('div').slideToggle(250);
});
$("#accordion > li > span").click(function() {
$(this).toggleClass("active").next('div').slideToggle(250)
.closest('li').siblings().find('span').removeClass('active').next('div').slideUp(250);
});