DEV Community

JS DOM API for Beginners: Removing all elements with a certain class

Michael Puckett on January 19, 2020

If you're familiar with CSS 🎨, then you can use the same selector syntax to target all matching elements in JavaScript 💻. window.document.querySe...
Collapse
 
rossangus profile image
Ross Angus

Lovely work, Michael. I literally first encountered this last week. That "ellipsis" syntax is weird.