I need the following, when the page is loaded must show one open accordion with minus icon, and when closed the plus icon should change.
$('div.accordion-body').on('shown', function () {
$(this).parent("div").find(".icon-plus")
.removeClass("icon-plus")
.addClass("icon-minus");
});
$('div.accordion-body').on('hidden', function () {
$(this).parent("div").find(".icon-minus")
.removeClass("icon-minus")
.addClass("icon-plus");
});
How to make to display open accordion with default icon minus?