Skip to content

Instantly share code, notes, and snippets.

@davidchc
Created April 6, 2015 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidchc/9786349b3db270e4cca4 to your computer and use it in GitHub Desktop.
Save davidchc/9786349b3db270e4cca4 to your computer and use it in GitHub Desktop.
jQuery(function(){
jQuery('#ac-ts-1').click(function(){
var accordion = jQuery('#accordion-ts');
if(accordion.hasClass('accordi-off')){
accordion.removeClass('accordi-off').addClass("accordi-on");
}else{
accordion.removeClass('accordi-on').addClass("accordi-off");
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment