Skip to content

Category: Questions

Target Elements without specific className

I’m new to JS, but I was hoping there might be a selector like document.getElementsByClassName(“div:not(div-1)”) that selects elements by class name, unless they also have another class name, that I can define. Basically my project is a list of movies and their genres. Using an onclick funct…