Answers for "javascript get 2nd child element"

1

javascript get 2nd child element

//you can use the css nth-child property like this:
var second-child = document.querySeletorAll('[your element name]:nth-child(2)');
Posted by: Guest on December-26-2020

Code answers related to "javascript get 2nd child element"

Code answers related to "Javascript"

Browse Popular Code Answers by Language