Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript get every odd element

//you can use the css nth-child property like this:
var second-child = document.querySeletorAll('[your element name]:nth-child(odd)');
 
PREVIOUS NEXT
Tagged: #javascript #odd #element
ADD COMMENT
Topic
Name
7+5 =