Change :odd and :even to behave like :nth-child(odd) and :nth-child(even)

Change :odd and :even to behave like :nth-child(odd) and :nth-child(even)


When adding tablesorter to my site today, I came across a very counter-
intuitive behaviour of two of jQuery's selectors: ":odd" and ":even".
While it is clearly documented that they do start counting at zero,
there seems to be little reason (apart from backwards compatibility)
to label odd elements as :even, and even elements as :odd.
Furthermore, the ease of typing of :odd and :even instead of :nth-child
(*), make them the first choice of developers (such as tablesorter's),
who might expect more straightforward behavior.
I propose is to, in the next jQuery version, change the ":odd" and
":even" selectors so they behave exactly like :nth-child(odd) and :nth-
child(even), respectively. Alternatively, :odd and :even could be
deprecated in favor of the :nth-child(*) selectors, so as to not break
any existing code, but discouraging new developers from using the
counter-intuitive selectors.