jQuery :even selector
Definition and usage
:even selector selects each element with an even index value (such as 2, 4, 6).
The index value starts from 0, and the first element is even (0).
The most common usage: used together with other elements/selectors to select elements with even numbers in the specified group (such as the example above).
Syntax
$(":even")
Tips and comments
Tip:Please use :odd selectorto select elements with odd numbers.