Created
July 3, 2018 12:38
-
-
Save renanlara/37c5880c0ed0e5d9ac07d6e53b5a16bf to your computer and use it in GitHub Desktop.
Accordion Bootstrap - Add icon open and close
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.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