Answers for "how to give index in query selector in js"

0

how to give index in query selector in js

// document.getElementsByClassName("first")[1].getElementsByClassName("second")[2];

document.querySelector('.first:nth-of-type(2) .second:nth-of-type(3)').style = 'border: 1px solid red;'
Posted by: Guest on September-01-2021

Code answers related to "how to give index in query selector in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language