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:
- Because
:odd
is a jQuery extension and not part of the CSS specification, queries using登录查看完整内容