@RayaneBengaoui
Posted
Hello Tushar,
First of all, congrats for the challenge !
To achieve this you could use Javascript. I think you could find plenty of solutions here that have implemented this to get inspired but one idea might be to create a function that iterates through all your collapse
elements to remove the class active
. Then you would just have to call this function before your this.classList.toggle("active");
Overall, well done for the challenge and happy coding ! 😃
@tushar416
Posted
@RayaneBengaoui thanks a lot!