次のようなテーブルがあります。
<table>
<tr>
<th>h1</th>
<th>h2</th>
<th>h3</th>
</tr>
<tr>
some content here
</tr>
<tr>
<td>1</td> <td>2</td> <td>3</td>
</tr>
<tr>
inside this row, I have a table which contains 2 rows
</tr>
<tr>
<td>1</td> <td>2</td> <td>3</td>
</tr>
<tr>
inside this row, I have a table which contains 2 rows
</tr>
<tr>
<td>1</td> <td>2</td> <td>3</td>
</tr>
<tr>
inside this row, I have a table which contains 2 rows
</tr>
//it repeats like this
</table>
jquery を使用して 3 行目から 3 行ごとに代替色を適用したいと考えています。つまり、コードの次のセクションに代替色を適用したいと考えています。どうすればいいですか?ありがとう
<tr>
<td>1</td> <td>2</td> <td>3</td>
</tr>
<tr>
inside this row, I have a table which contains 2 rows
</tr>
基本的に、ヘッダー行とヘッダー行の後の最初の行を選択したくありません。その後、毎回3行を選択し、別の色を付けたいと思います。3行は上記の行になります。