Script for accordion
parent
1642879165
commit
eb5ddfe4c3
@ -0,0 +1,8 @@
|
||||
var elements = Array.from(document.getElementsByClassName("faq"));
|
||||
var i;
|
||||
|
||||
for (i = 0; i < elements.length; i++) {
|
||||
elements[i].addEventListener("click", function() {
|
||||
this.classList.toggle("active");
|
||||
});
|
||||
}
|
Loading…
Reference in New Issue