入力:
<table>
<tr>
<td>
<div id="gvMasterGrid_ctl03_pnlWarning" class="warning">
<span id="gvMasterGrid_ctl03_lblWarning">This has a problem</span>
</div>
</td>
</tr>
</table>
出力:
<table>
<tr>
<td>
<!--Moved to next row-->
</td>
</tr>
<tr>
<td>
<div id="gvMasterGrid_ctl03_pnlWarning" class="warning">
<span id="gvMasterGrid_ctl03_lblWarning">This has a problem</span>
</div>
</td>
</tr>
</table>
jqueryを使用しています。セレクターは要素 ID ではなく CSS クラスである必要があります
私は試しています
$(".warning").each(function(){
$(this).closest("tr").after("<tr><td colspan = '999'>" + $(this).html() + "</td></tr>")
});
しかし、それは機能していません。