Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JavaScript querySelector - Group selector

// selecting 3rd list item of 2nd container
let element = document.querySelector("#output>.container:nth-child(2) ul li:nth-child(3)");

element.style.background = "lightgreen";
Source by www.tutorialstonight.com #
 
PREVIOUS NEXT
Tagged: #JavaScript #querySelector #Group #selector
ADD COMMENT
Topic
Name
4+5 =