var acc = document.getElementsByClassName("accordion"); var i; for (i = 0; i