本文介绍了如何使用jquery从表中提取特定行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<table id="mytable">
<thead>
<tr>
<th>Fruits</th>
</tr>
</thead>
<tbody>
<tr>
<td>Apple</td>
</tr>
<tr>
<td>Orange</td>
</tr>
<tr>
<td>Mango</td>
</tr>
<tr>
<td>Banana</td>
</tr>
<tr>
<td>Orange</td>
</tr>
<tr>
<td>Apple</td>
</tr>
<tr>
<td>Mango</td>
</tr>
</tbody>
</table>
I want to extract the rows from the table where very first and very last fruit is orange. i.e except first and last two rows in this case.
我尝试了什么:
i尝试循环遍历数组并暂停和弹出元素但没有运气
What I have tried:
i tried looping through array and pusing and popping elements but no luck
推荐答案
演示: []
这篇关于如何使用jquery从表中提取特定行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!