我正在尝试使用 value3 元素获得第三个跨度。使用以下查询:
jQuery('span[class*="3"]:contains("value3")')
将返回一个跨度列表,我只需要第三个。问题是如何..
该站点具有以下结构:
<table>
<tr>
<td>
<table>
<tr>
<td><span class="1">value1</span></td>
<td><span class="2">value2</span></td>
<td><span class="3">value3</span></td>
<td><span class="4">value4</span></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table>
<tr>
<td><span class="1">value1</span></td>
<td><span class="2">value2</span></td>
<td><span class="3">value3</span></td>
<td><span class="4">value4</span></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table>
<tr>
<td><span class="1">value1</span></td>
<td><span class="2">value2</span></td>
<td><span class="3">value3</span></td>
<td><span class="4">value4</span></td>
</tr>
</table>
</td>
</tr>
</table>