How to make table row group color(even - odd) with jquery : How to make table in jquey like [this pic :][1]

I know this is simple, but i hope, someone can helpme.
With the good logic.

Thanks before

  [1]: https://i.stack.imgur.com/RvrvV.png