I have a link and a table row that have matching classes. When the link is clicked, I would like to change the background color of the row with the same class. For each ca
You have several errors. You mixed classes with ids and also the class
property is actually className
change first row
change second
test1
test2
Check this jsfiddle