Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
let selector = "#content > ul > li > a:nth-child(1)";
for (let e of document.querySelectorAll(selector)) {
e.style.border = "thick solid #0000FF";
e.style.backgroundColor = "red";
e.style.color = 'white';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment