I'm currently working with a bootstrap 4 accordion and I would like to customize the border of only the .card
elements that are in the "show collapse" state.
var active = document.querySelector(".collapse.show");
active.parentNode.style.border = "1px solid #ea8523";
(CSS code here)
(Bootstrap HTML structure here)
My goal now is to have an orange border on the active or expanding .card
element, while the others will have a dashed border. I understand that this can be achieved with JavaScript, but my knowledge in that area is limited. Any assistance would be greatly appreciated.