[jQuery] nth-child() vs. even/odd

[jQuery] nth-child() vs. even/odd


Are they equivalent to each other? Ignoring the fact that one is
counting from 0 and one from 1. This does not work (use the same CSS
class for subsequent rows):
$("#tableid tbody tr:even").addClass("even");
$("#tableid tbody tr:odd").addClass("odd");
But this does work:
$("#tableid tbody tr:nth-child(even)").addClass("even");
$("#tableid tbody tr:nth-child(odd)").addClass("odd");