Recent Posts

Caution: Greetings to all visitors. The site is working in short. Links Please skip the link to view any topic and thank you for visiting
header ads

JS-Accordion, cannot (display="block") all other Panel-Elements

Hello,

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):
JS-Accordion, cannot (display="block") all other Panel-Elements

from JavaScript https://ift.tt/3dP1bO1
via IFTTT

Post a Comment

0 Comments