javascript get every odd element

Solutions on MaxInterview for javascript get every odd element by the best coders in the world

showing results for - "javascript get every odd element"
Valentino
06 Nov 2020
1//you can use the css nth-child property like this:
2var second-child = document.querySeletorAll('[your element name]:nth-child(odd)');