我有6個TDS是這樣的:如何添加類到下一個鏈接懸停在jQuery的td?
<td><a href="#">link</a></td>
<td>Some text here</td>
<td><a href="#">link</a></td>
<td>Some other text here</td>
<td><a href="#">link</a></td>
<td>Some other other text here</td>
而且我想在鏈接到下一個TD懸停後addClass。例如。如果我將鼠標懸停在第二個TD的鏈接在接下來的TD將有例如一類活躍這樣
<td><a href="#">link</a></td>
<td>Some text here</td>
<td><a href="#">link</a></td> <!-- hoovering over this link -->
<td class="active">Some other text here</td> <!-- and this td will have class active-->
<td><a href="#">link</a></td>
<td>Some other other text here</td>
如何做到這一點?