Created
June 2, 2019 02:12
-
-
Save powerlanguage/cbadd7c299ed6cc5955213b9673b65d3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const categories = document.querySelectorAll("section.category"); | |
const tshirts = Array.from(categories).filter( | |
category => category.querySelector("h3").innerText === "T-SHIRTS" | |
); | |
const tshirtList = tshirts.querySelector("ul"); | |
// do stuff looping over the list of tshirts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment