jQuery: Table Striping

Let's get started with jQuery by "striping" a table. The plain table comes from a list of United States Senators.

<script src="https://code.jquery.com/jquery-3.5.1.min.js"
      integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
      crossorigin="anonymous"></script>
<script>
   $(document).ready(function()
       {
           $("#senatetable tbody tr:even").addClass('evenRow');
           $("#senatetable tbody tr:odd").addClass('oddRow');
       }
   );
 </script>
     

Plain table:
table

Striped table:
table