Below is another table. This time the rows have the class names
even
and odd
. Since the order of the rows
change when the table is sorted we reset the class names after the
sort.
String | String | Number | Date | No Sort |
apple | Strawberry | 45 | 2001-03-13 | Item 0 |
Banana | orange | 7698 | 1789-07-14 | Item 1 |
orange | Banana | 4546 | 1949-07-04 | Item 2 |
Strawberry | apple | 987 | 1975-08-19 | Item 3 |
Pear | blueberry | 98743 | 2001-01-01 | Item 4 |
blueberry | Pear | 4 | 2001-04-18 | Item 5 |