Tuesday, 6 August 2013

jquery accordion click toggle class

jquery accordion click toggle class

i want in this when tab slide up remove class active and add active class
in open tab
$(document).ready(function(){
$("#accordian li h3").click(function(){
//slide up all the link lists
$("#accordian ul .row").slideUp();
//slide down the link list below the h3 clicked - only if
its closed
if(!$(this).next().is(":visible"))
{
$(this).next().slideDown();
}
})
})

No comments:

Post a Comment