Skip to content

Instantly share code, notes, and snippets.

@nareeboy
Created December 11, 2013 16:08
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 nareeboy/7913198 to your computer and use it in GitHub Desktop.
Save nareeboy/7913198 to your computer and use it in GitHub Desktop.
JQuery: adding plus and minus to bootstrap accordian
$(document).ready(function(){
$('[data-toggle="collapse"]').click(function(e) {
// alert(e.target);
$(e.target).find('.icon-minus-circled, .icon-plus-circled').toggleClass("icon-minus-circled icon-plus-circled");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment