Skip to content
Robbie Chipka edited this page Dec 23, 2015 · 1 revision

The :odd selector is a shortcut for :nth-of-type(odd), which selects each element whose position is an odd number (first, third, fifth, etc.)

Usage

document.querySelectorAll('td:odd')
Clone this wiki locally