<table border=2>
<tr class="here1 yes">
<td>aaa1</td><td>bbb1</td>
</tr>
<tr class="here2 yes">
<td>aaa2</td><td>bbb2</td>
</tr>
<tr class="here55 yes">
<td>aaa3</td><td>bbb3</td>
</tr>
</table>
<table border=2>
<tr class="here1 yes">
<td>ccc1</td><td>ddd1</td>
</tr>
<tr class="here2 yes">
<td>ccc2</td><td>ddd2</td>
</tr>
<tr class="here55 yes">
<td>ccc3</td><td>ddd3</td>
</tr>
</table>
.yes:hover {
background-color: red;
}
LIVE: http://jsfiddle.net/KzzW8/
The above table is generated with the following PHP:
`<tr class="here<? echo $i ?> yes">`
I would like a mouseover on TR.here1 to turn the contents of any TR.here1 to RED where the subordinate TD is in the group: (aaa1, bbb1, ccc1, ddd1) regardless of which table it is in.
I believe I can use jQuery for this. Is this possible?
http://jsfiddle.net/KzzW8/1/
So you on hover event get the
here*class and apply class.hoverto all the rows with the same class. On hover out – you remove all the additionally added classes