var elem = document.getElementsByClassName("briefsectiontop").querySelector("[data=" + i + "]").getElementsByClassName("current")[0];
if (elem.style.display == "none") {
elem.style.display = "block";
} else {
elem.style.display = "none";
};
There are other div elements, but that should be enough to know what the essential HTML looks like, why won't it take my query?