I have implemented Bootstrap's accordion on my webpage, consisting of two different sections with unique content. Upon loading the page, the active class defaults to the first element of the first section. However, if I navigate to the "Second" section and click on one of the list items, the active class remains stuck in the "First" section. - My desired outcome is to only have one active class at a time
.perNe2-section {
padding-top: 0;
}
.perNe2-section .content-wrapper {
margin-bottom: 30px;
}
...
...(CSS continues)
...
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<section class="perNe2-section">
...
...(HTML continues)
...