<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;
}
ライブ: http: //jsfiddle.net/KzzW8/
上記の表は、次のPHPで生成されます。
`<tr class="here<? echo $i ?> yes">`
部下がグループ内にある場合は、マウスオーバーTR.here1
をオンにして、anyの内容TR.here1
をREDにTD
変更します:(aaa1、bbb1、ccc1、ddd1)どのテーブルにあるかに関係なく。
これにはjQueryを使用できると思います。これは可能ですか?