:odd selector

:odd Selector

odd selector

Description: Selects odd elements, zero-indexed. See also even.

  • version added: 1.0jQuery( ":odd" )

In particular, note that the 0-based indexing means that, counter-intuitively, :odd selects the second element, fourth element, and so on within the matched set.

Additional Notes: