Skip to content

Instantly share code, notes, and snippets.

@renanlara
Created July 3, 2018 12:38
Show Gist options
  • Save renanlara/37c5880c0ed0e5d9ac07d6e53b5a16bf to your computer and use it in GitHub Desktop.
Save renanlara/37c5880c0ed0e5d9ac07d6e53b5a16bf to your computer and use it in GitHub Desktop.
Accordion Bootstrap - Add icon open and close
$('.panel-collapse').on('show.bs.collapse', function () {
$(this).siblings('.panel-heading').addClass('active');
});
$('.panel-collapse').on('hide.bs.collapse', function () {
$(this).siblings('.panel-heading').removeClass('active');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment