I have a list of table rows with different background colors like
<tr bgcolor="#OC6110">
<tr bgcolor="#000000">
<tr bgcolor="#FFFFFF">
Is there a way to assign unique background colors to each tr
element without specifying its id value in JavaScript or CSS only?
I want to update the background colors dynamically without altering the HTML code that already contains some background color assignments.