This function should search the document for any element with a 'data-info' attribute with a value of 'graphicDesign' then toggle the class 'hideMe' on those elements.
It returns the correct amount of elements in the console, but breaks on the classList toggle.
I've tried alternatives such as finding elements by class name then toggling, but this doesn't work either.
function toggleGraphicDesign() {
let graphicDesignElements = document.querySelectorAll('[data-info="graphicDesign"]');
console.log(graphicDesignElements.length);
graphicDesignElements.classList.toggle('hideMe');
}