Find and copy FORM tag
<p>I need to find a form tag within an element and copy it. I feel I'm close but not quite there yet. He's what I've got so far:</p>

<p><strong>JS</strong></p>

<pre><code>if ($('#myElement').find('form').length &gt; 0) {
        var myFormTag= $('#myElement').find('form').html();         
}
</code></pre>

<p><strong>HTML</strong></p>

<pre><code>&lt;div id="myElement"&gt;
    &lt;h1&gt;
        blah
    &lt;/h1&gt;

    &lt;form action="blah.php" method="post"&gt;              

        &lt;table&gt;
        &lt;tr&gt;
            &lt;td&gt;
                &lt;select&gt;
                    &lt;option&gt;option
                &lt;/select&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input type="text"&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;/table&gt;
    &lt;/form&gt;
&lt;/div&gt;
</code></pre>

<p>I just need to return the opening  tag:</p>

<pre><code>&lt;form action="blah.php" method="post"&gt;
</code></pre>
