0

如何使用javascript从具有不同行ID模式的表中删除一组行,例如:我们有三组rowid。(rowid:HS_AFI_H_2000012“,rowid =“HS_AFI_H_2000012_HV_498661_HVK_1”,rowid:H_113_A_444_B_2)。我们需要删除第三个模式.

代码示例:

<tr role="row" id="H_113_A_444_B_10" tabindex="-1" class="ui-widget-content jqgrow ui-row-ltr">
    <td role="gridcell" style="display:none;" aria-describedby="result-table_id">undefined</td>
    <td role="gridcell" style="" title="Run of House - Double" aria-describedby="result-table_name"></td>
    <td role="gridcell" style="" title="NA" aria-describedby="result-table_count"><span class="count">NA</span></td>
    <td role="gridcell" style="" title="2013-08-23" aria-describedby="result-table_seta_begin_min">2013-08-23</td>
</tr>

<tr role="row" id="HS_AFI_H_2000012_HV_498661_HVK_1" tabindex="-1" class="ui-widget-content jqgrow ui-row-ltr">
    <td role="gridcell" style="display:none;" aria-describedby="result-table_id">undefined</td>
    <td role="gridcell" style="" title="Run of House - Double" aria-describedby="result-table_name"></td>
    <td role="gridcell" style="" title="NA" aria-describedby="result-table_count"><span class="count">NA</span></td>
    <td role="gridcell" style="" title="2013-08-23" aria-describedby="result-table_seta_begin_min">2013-08-23</td>
</tr>

<tr role="row" id="H_113_A_444_B_10" tabindex="-1" class="ui-widget-content jqgrow ui-row-ltr">
    <td role="gridcell" style="display:none;" aria-describedby="result-table_id">undefined</td>
    <td role="gridcell" style="" title="Run of House - Double" aria-describedby="result-table_name"></td>
    <td role="gridcell" style="" title="NA" aria-describedby="result-table_count"><span class="count">NA</span></td>
    <td role="gridcell" style="" title="2013-08-23" aria-describedby="result-table_seta_begin_min">2013-08-23</td>
</tr>

我们需要删除第三行 id 模式。

4

0 回答 0