要素内のフォーム タグを見つけてコピーする必要があります。私は近づいていると感じていますが、まだ十分ではありません。彼は私がこれまでに持っているものです:
JS
if ($('#myElement').find('form').length > 0) {
var myFormTag= $('#myElement').find('form').html();
}
HTML
<div id="myElement">
<h1>
blah
</h1>
<form action="blah.php" method="post">
<table>
<tr>
<td>
<select>
<option>option
</select>
</td>
<td>
<input type="text">
</td>
</tr>
</table>
</form>
</div>
開始タグを返すだけです。
<form action="blah.php" method="post">