排在桌面上不是一个问题。
问题在于通过表格进行对比,同时将另一条拖到具有不同价值的同一行中。 如何做到这一点?
- going through #tblView tbody tr.class
- to find through all row for second td and see whether the .text() is "completed"
- if yes
- then third td s span s inner text set to "bingo"
- else
- do nothing
- end
<table id="tblView">
<tbody>
<tr class="class">
<td>completed</td>
<td></td>
<td></td>
</tr>
<tr class="class">
<td>not yet</td>
<td></td>
<td></td>
</tr>
</tbody>
</table>