I have the following code from w3schools, opening an closing an accordion-list (panel).
(CSS works well!!) I wanted to augment the version: When I open a panel all the other panels should close. I tried to use the second loop in /**/, however this does not work.
Any suggestions? Thanks a lot!
(function () {
var acc = document.getElementsByClassName("accordion");
var i,j;
for (i = 0; i < acc.length; i++) {...
Code (JavaScript):
from JavaScript https://ift.tt/3dP1bO1
via IFTTT
0 Comments