我有一个类似于以下的表格。
<table class="schedule-table" cellspacing="1" border="0" style="width:100%;">
<tr class="DataRow" id="DataRow_1">
<td class="resource" style="display:none;">8</td>
<td class="resource">John Smith</td>
<td class="resource">blah blah blah</td>
<td class="resource">blah blah blah</td>
<td class="resource">blah blah blah</td>
<td class="resource">blah blah blah</td>
</tr>
<tr class="DataRow" id="DataRow_2">
<td class="resource" style="display:none;">9</td>
<td class="resource">Huck Fin</td>
<td class="resource">blah blah blah</td>
<td class="resource">blah blah blah</td>
<td class="resource">blah blah blah</td>
<td class="resource">blah blah blah</td>
</tr>
<tr class="DataRow" id="DataRow_3">
<td class="resource" style="display:none;">10</td>
<td class="resource">Tom Sawyer</td>
<td class="resource">blah blah blah</td>
<td class="resource">blah blah blah</td>
<td class="resource">blah blah blah</td>
<td class="resource">blah blah blah</td>
</tr>
</table>
我想选择 #DataRow_2 并将第 4 和第 5 个单元格替换为:
var newTd = <td class="newclass" colspan="2">Stuff for cell that should span two cells</td>
我怎样才能做到这一点?